标签:\n pow stdio.h print main return for div clu
#include<stdio.h> #include<math.h> int main() { int x; for (x = 100; x < 1000; x++) { int a = x / 100; int b = (x - a * 100) / 10; int c = x - a * 100 - b * 10; if (x == pow(a, 3) + pow(b, 3) + pow(c, 3)) { printf("%d\n", x); } } return 0; }
标签:\n pow stdio.h print main return for div clu
原文地址:https://www.cnblogs.com/zhuzehua/p/10884974.html