///123 #include <stdio.h> int main() { int n,rem,sum=0,rev=0; scanf("%d",&n); while (n) { rem=n%10; rev=rev*10+rem; n/=10; } printf("reverse= %d\n",rev); return 0; }