Ask Question
8 April, 20:22

Flowchart to reverse digits of an integer

+5
Answers (1)
  1. 8 April, 23:02
    0
    The flowchart to reverse digits of an integer may be explained like this: If its a decimal number you could use modulus function to return the first lowest digit in the integer like 45%10 would give you a 5. By doing that you will have the number reversed. Lets see an example of that

    Flow: (Lets take for example 123)

    num = 123

    loop

    print num%10 (prints 3)

    num = num/10 (num now is 12 - integer division removes remainder)

    end loop

    result : 321
Know the Answer?
Not Sure About the Answer?
Find an answer to your question ✅ “Flowchart to reverse digits of an integer ...” in 📘 Computers and Technology if you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers