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