<>(提示:153 = 111 + 555 + 333)
int ge, shi, bai, num; for (int i = 1; i < 10; i++) { for (int j = 0; j < 10; j
++) { for (int k = 0; k < 10; k++) { ge = k; shi = j * 10; bai = i * 100; num =
ge+ shi + bai; if (i * i * i + j * j * j + k * k * k == num) { Console.WriteLine
(num); } } } } int ge = 0; int shi = 0; int bai = 0; for (int i = 100; i < 1000;
i++) { ge = i % 10; shi = i / 10 % 10; bai = i / 100; if (Math.Pow(ge, 3) +
Math.Pow(shi, 3) + Math.Pow(bai, 3) == i) { Console.WriteLine(i + "是水仙花数"); } }