内容纲要
            int a, b, c, sum;
            for (int i = 100; i < 1000; i++) 
            {
                a = i / 100;
                b = i / 10 % 10;
                c = i % 10;

                sum = a * a * a + b * b * b + c * c * c;

                if (sum == i)
                    Console.WriteLine(i +"\n");
            }

2 对 “水仙花数”的想法;

发表评论