Advertisement
Guest User

Untitled

a guest
Feb 22nd, 2019
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. #include<stdio.h>
  2. #include<conio.h>
  3. int main(void)
  4. {
  5. int n,sum=0,a;
  6. scanf("%d",&n);
  7. while(n>0)
  8. {
  9. a=n%10;
  10. sum=sum*10+a;
  11. n=n/10;
  12. printf("%d",a);
  13. }
  14. getch();
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement