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

Method main

day21/code/java/ForTest5.java:16–28  ·  view source on GitHub ↗
(String[] args)

Source from the content-addressed store, hash-verified

14*/
15class ForTest5 {
16 public static void main(String[] args) {
17 for(int x=10000; x<100000; x++) {
18 int ge = x%10;
19 int shi = x/10%10;
20 int bai = x/10/10%10;
21 int qian = x/10/10/10%10;
22 int wan = x/10/10/10/10%10;
23
24 if((ge == wan) && (shi == qian) && (ge+shi+qian+wan == bai)) {
25 System.out.println(x);
26 }
27 }
28 }
29}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected