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

Method main

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

Source from the content-addressed store, hash-verified

19*/
20class ForDemo4 {
21 public static void main(String[] args) {
22 //����ͳ�Ʊ���
23 int count = 0;
24
25 for(int x=100; x<1000; x++) {
26 int ge = x%10;
27 int shi = x/10%10;
28 int bai = x/10/10%10;
29
30 if(x == (ge*ge*ge + shi*shi*shi + bai*bai*bai)) {
31 count++;
32 }
33 }
34
35 System.out.println("ˮ�ɻ������У�"+count+"��");
36 }
37}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected