摘要: # include <stdio.h> int main() {int a,b,c,i=0,d; for(a=1;a<=5;a++) {for(b=1;b<=5;b++) {for(c=1;c<=5;c++) {if(a!=b&&a!=c&&b!=c) {d=a*100+b*10+c; printf 阅读全文
posted @ 2019-05-09 15:06 201821430014 阅读(155) 评论(0) 推荐(0) 编辑
摘要: # include <stdio.h> int main() {int h,t,a,n; int i=0; for(n=100;n<1000;n++) {h=n/100; t=(n-h*100)/10; a=n%10; if(n==h*h*h+t*t*t+a*a*a) {printf("%d\n", 阅读全文
posted @ 2019-05-09 14:50 201821430014 阅读(120) 评论(0) 推荐(0) 编辑
摘要: # include <stdio.h> int main() {int s=0; int a=22; do { s=s+a; a=a+20;} while (a<=1002); printf("%ld\n",s); return 0; } 阅读全文
posted @ 2019-05-09 14:32 201821430014 阅读(168) 评论(0) 推荐(0) 编辑
摘要: # include <stdio.h> int main() {int s=0; int a=22; while (a<=1002) {s=s+a; a=a+20; } printf("%ld\n",s); return 0; } 阅读全文
posted @ 2019-05-09 14:29 201821430014 阅读(152) 评论(0) 推荐(0) 编辑
摘要: # include <stdio.h> int main() {int s=0; int a; for(a=22;a<=1002;a+=20) {s=s+a; } printf("%ld\n",s); return 0; } 阅读全文
posted @ 2019-05-09 14:24 201821430014 阅读(151) 评论(0) 推荐(0) 编辑