摘要: 水仙花数 源代码 #include <stdio.h>int main(){ int a,b,c; for(int i=100;i<1000;i++){ a=i%10; b=(i/10)%10; c=i/100; if(a*a*a+b*b*b+c*c*c==i) printf("%d\n",i); 阅读全文
posted @ 2023-05-30 17:11 晨观夕 阅读(43) 评论(0) 推荐(0) 编辑