问题遇到的现象和发生背景
问题相关代码,请勿粘贴截图
运行结果及报错内容
我的解答思路和尝试过的方法
我想要达到的结果
```c
#include <stdio.h>
#include <math.h>
int main()
{
int i = 0;
for (i = 100; i < 100000; i++)
{
if (i >= 100 && i < 1000 && (pow(i / 100, 3) + pow(i / 10 % 10, 3) + pow(i % 100, 3)) == i)
{
printf("%d ", i);
}
if (i >= 1000 && i < 10000 && (pow(i / 1000, 4) + pow(i / 100 % 10, 4) + pow(i % 100 / 10, 4) + pow(i % 1000, 4)) == i)
{
printf("%d ", i);
}
if (i >= 10000 && i < 100000 && (pow(i / 10000, 5) + pow(i / 1000 % 10, 5) + pow(i / 100 % 100, 5) + pow(i % 100 / 100, 5) + pow(i % 10000, 5)) == i)
{
printf("%d ", i);
}
}
return 0;
}
```