Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int main()
- {
- int n,div,rem;
- printf("Input an Integer: ");
- scanf("%d",&n);
- printf("The reverse number is: ");
- do
- {
- div=n/10;
- rem=n%10;
- printf("%d",rem);
- n=div;
- }while(n!=0);
- return;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement