1/18/2021 2:37:19 PM
printf("Enter the five digit number: \n");
revnum=revnum*10 + rem;
printf("The reversed number is: ");
Ira Sarkar you didn't told us that you have to solve it without loop.
hopefully you got the answer tho.
Ira Sarkar now that you have solved it with inline code, you might enjoy seeing another approach. Here is a way to use recursion to print the number from right to left without using a loop:
Brian yes, thank you.😊
Abhay i have got to solve it without loop😅
Abhay but I found my answer, I think, not sure.
Let me try😅
I got it, thanks a lot though!
Send us a message