[ create a new paste ] login | about

Link: http://codepad.org/JHjxTbdA    [ raw code | output | fork ]

C, pasted on Aug 21:
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();
}


Output:
1
2
3
Enter the Number to Find it's Reverse
-2-9-7-2-3-20-80-1
Exited: ExitFailure 255


Create a new paste based on this one


Comments: