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