Advertisement
Guest User

Untitled

a guest
Dec 10th, 2019
97
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 <stdlib.h>
  3.  
  4. int sub(int n)
  5. {
  6. if(n==0)
  7. return 0;
  8. sub(n/100);
  9. printf("%d%d",n%10,(n/10)%10);
  10. }
  11.  
  12. int main()
  13. {
  14. int n;
  15. scanf("%d",&n);
  16. sub(n);
  17. return 0;
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement