#include <stdio.h>
int main()
{
int i,a,b=1,c=1;
printf("请输入一组数字:\n");
scanf("%d",a);
for(;;i++)
{
b=a/(c*10);
printf("反序数组=%d\n",((a-b*10*c)/c));
if(0==b) break;
c=c*10;
}
return 0;
}
#include <stdio.h>
int main()
{
int i,a,b=1,c=1;
printf("请输入一组数字:\n");
scanf("%d",a);
for(;;i++)
{
b=a/(c*10);
printf("反序数组=%d\n",((a-b*10*c)/c));
if(0==b) break;
c=c*10;
}
return 0;
}
转载于:https://www.cnblogs.com/lipiao/p/4111364.html