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