标签:水仙花数 == nbsp 计算 ++ bsp 水仙花 console i++
for (int i = 100; i <=999; i++)
{
int a = i / 100 % 10;
int b = i / 10 % 10;
int c = i % 10;
if (a * a * a + b * b * b + c * c * c == i)
{
Console.WriteLine(i);
}
}
标签:水仙花数 == nbsp 计算 ++ bsp 水仙花 console i++
原文地址:https://www.cnblogs.com/-Ellen/p/9865690.html