#include <stdio.h>
main()
{
int i=0;
long int x,j,k=0;
scanf("%ld",&x);
j=x;
while(j)
{
printf ("%ld ",j%10);
k=k*10+j%10 ;
j/=10;
i++;
}
printf("\n%d\n",i);
while(k)
{
printf("%ld ",k%10);
k/=10;
}
getch();
}
试试去吧~~
[glow=255,violet,2]闭关修炼ing...[/glow] [FLASH=360,180]http://www./chinaren.swf[/FLASH]