#include <stdio.h> int main() { int x,m; x=123; while(x!=0) { m=x%10; printf("%d",m); x/=10; } return 0; }