int a=1234;

int current;

while(a)

{

current=a%10;//4

cout<<current;

a=a/10;

}

相关文章: