发布网友 发布时间:2022-07-12 11:23
共2个回答
热心网友 时间:2023-10-17 19:40
#include <stdio.h>
void shuiXianHua(void);
int main(void)
{
shuiXianHua();
return 0;
}
void shuiXianHua(void)
{
int i = 0, ge = 0, shi = 0, = 0;
for(i = 100; i < 1000; i++)
{
= i / 100;
shi = i % 100 / 10;
ge = i % 10;
if( * * + shi * shi * shi + ge * ge * ge == i)
printf("%d\n", i);
}
}
热心网友 时间:2023-10-17 19:41
int li(int n)