Advertisement
Guest User

Untitled

a guest
Sep 15th, 2019
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.13 KB | None | 0 0
  1. void main()
  2. {
  3.     int num, r;
  4.     scanf("%d", &num);
  5.     while (num > 0)
  6.     {
  7.         r = num % 10;
  8.         printf("%d", r);
  9.         num /= 10;
  10.     }
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement