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