c语言5-2
作者:互联网
#include "stdafx.h" #include "stdio.h" int main(){ int a,b,c,d,t,m; t=0; for(a=100;a<=998;a++){ b=a/100; c=a%100/10; d=a%10; if(a==b*b*b+c*c*c+d*d*d){ t++; printf("%d\n",a);}} printf("%d\n",t); return 0;}
标签:main,stdafx,语言,int,stdio,100,include 来源: https://www.cnblogs.com/p201821440019/p/10750536.html