解题思路:
注意事项:
参考代码:
#include "stdio.h"
#include "math.h"
int main()
{
int i=2;
while (i < 1000)
{
if ((pow(i / 100 , 3) + pow(i / 10 % 10, 3) + pow(i % 10, 3)) == i)
printf("%d\n", i);
i++;
}
return 0;
}
0.0分
1 人评分
三角形 (C++代码)记忆化搜索浏览:1234 |
WU-C语言程序设计教程(第三版)课后习题12.1 (C++代码)浏览:940 |
打印十字图 (C语言代码)浏览:2710 |
2003年秋浙江省计算机等级考试二级C 编程题(1) (C语言代码)浏览:682 |
C语言程序设计教程(第三版)课后习题10.5 (C语言代码)浏览:545 |
1162答案错误,为什么浏览:644 |
求圆的面积 (C语言代码)浏览:657 |
核桃的数量 (C语言代码)浏览:829 |
简单的a+b (Java代码)浏览:752 |
Manchester- Hello, world!浏览:13067 |