MCPcopy Create free account
hub / github.com/DuGuQiuBai/Java / main

Method main

day21/code/java/ForTest4.java:21–31  ·  view source on GitHub ↗
(String[] args)

Source from the content-addressed store, hash-verified

19*/
20class ForTest4 {
21 public static void main(String[] args) {
22 for(int x=100; x<1000; x++) {
23 int ge = x%10;
24 int shi = x/10%10;
25 int bai = x/10/10%10;
26
27 if(x == (ge*ge*ge + shi*shi*shi + bai*bai*bai)){
28 System.out.println(x);
29 }
30 }
31 }
32}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected