Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- #include<conio.h>
- int main(void)
- {
- int n,sum=0,a;
- scanf("%d",&n);
- while(n>0)
- {
- a=n%10;
- sum=sum*10+a;
- n=n/10;
- printf("%d",a);
- }
- getch();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement