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