Write algorithm and draw flowchart for finding the reverse of the giving number
Answers
Answered by
3
Answer:
Algorithm for Reversing the Number
So in this algorithm read the number let's say 4536 then we enter the while loop as n is not equal 0. Then we use modulo to find the last digit and in reverse we multiply the reverse * 10 and add it. Now the n will not enter the loop and we print the value of reverse ie. 6354.
Attachments:
Similar questions