C语言 在1~n个整数求回文数 个数

[复制链接]
查看11 | 回复3 | 2011-10-30 20:57:40 | 显示全部楼层 |阅读模式
#include int main(void){int n, x, temp, t, sum = 0, i;scanf("%d", &i);
//for(n=1;n 0);if (temp == n)...
回复

使用道具 举报

千问 | 2011-10-30 20:57:40 | 显示全部楼层
for(n=1;nmain(){int n,x,temp,t,sum=0,i;scanf("%d%",&i);for(n=1;n<i;n++){temp=0;x=n;do{t=x%10;temp=temp*10+t;x=x/10;}whi...
回复

使用道具 举报

千问 | 2011-10-30 20:57:40 | 显示全部楼层
scanf("%d%",&i);应scanf("%d",&i);...
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行