1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
#include <stdio.h> main() { int a,b,c,d,e; printf("Enter the Number to Find it's Reverse\n"); scanf("%d",&a); while(a!=0) { b=a%10; c=a/10; printf("%d",b); a=c; } getchar(); }
1 2 3
Enter the Number to Find it's Reverse -2-9-7-2-3-20-80-1 Exited: ExitFailure 255