#include <stdio.h> //a b c均为一位整数,求当三位整数abc+cba=1333时的a,b,c的值 main() { int a,b,c; for(a=1;【1】;a++) for(【2】;b<=9;b++) for(【3】;c<=9;c++) if(【4】) printf("a=%d,b=%d,c=%d\n",a,b,c); getchar(); }
#include <stdio.h> //a b c均为一位整数,求当三位整数abc+cba=1333时的a,b,c的值 main() { int a,b,c; for(a=1;a<=9;a++) for(b=0;b<=9;b++) for(c=1;c<=9;c++) if(a*100+b*10+c+c*100+b*10+a==1333) printf("a=%d,b=%d,c=%d\n",a,b,c); getchar(); }
标签:abc,整数,C语言,1333,填空,main From: https://www.cnblogs.com/xkdn/p/17110850.html