ansAnbluebayajles ansAnbluebayajles
  • 29-10-2016
  • Computers and Technology
contestada

flowchart to reverse digits of an integer

Respuesta :

pkmnmushy
pkmnmushy pkmnmushy
  • 09-11-2016
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
Answer Link

Otras preguntas

PLEASE HELP ME RIGHT NOW PLEASE!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! --INCLUDING LOUISIANA AND MI
simplify 24/40 in simplest form
Which disturbance would result in primary succession? A. harvesting wheat by using a combine harvester at the end of the growing season B. controlled burning to
What are particles of carbon otherwise known as, and what kind of pollution do they cause???
What is 100 increased by 99%
How many joules are needed to warm 45.0 grams of water from 30.0 degrees C to 75.0 degrees C?
There are several types of tissues found in plants. Two examples are ________ tissue and _______ tissue
I'm havingn trouble in math. What's 3/4 - 2/5 in fraction form?
Describe what matter is
Jane wrote a note to the teacher wut is the preposition