c语言设计:输出全部的3位回文数,要求输出10个结果换行

日期:2015-04-13 20:36:07 人气:1

c语言设计:输出全部的3位回文数,要求输出10个结果换行

#includeint main(){ int count=0; int t=0; int m; for(int n=100;n<=1000;n++){ m=n; t=0; while(m){ t=t*10+m%10; m=m/10; } if(t==n){ count++; printf("%d &q
    A+
热门评论