mahantsmith47 mahantsmith47
  • 08-08-2020
  • Computers and Technology
contestada

Rewrite following program using for loop no=3456 while no>0 : print(no%10) no=no/10

Respuesta :

tonb
tonb tonb
  • 09-08-2020

Answer:

no=3456  

for x in reversed(str(no)):

 print(x)

Explanation:

If you turn the number into a string and then reverse it, you can achieve the same output.

Answer Link
camdenihatecody camdenihatecody
  • 01-09-2020
No =3456
Your welcome I just took a test with this on it
Answer Link

Otras preguntas

Why did thousands of Russian citizens march on St. Petersburg in 1905?
2/3 year = __ months
According to Columbus, when the natives saw Columbus and his men, what did they do? a.They became sad and went back to what they were doing. b.They became exc
Identify the type of chromosomal disorder described below. is known as trisomy 21 and impacts brain and body development. predominantly affects males and thei
A circular pan has a diameter of 8 inches. What is the exact area of the pan? A. 64π square inches B. 16π square inches C. 8π square inches
(actual answers please) The build up of one's military and weapons is called Propaganda Militarism Nationalism Imperialism Which of the following was a member
At a carnival game, you randomly throw two darts at the board and break two balloons. What is the probability that both the balloons you break are purple? Ther
I am having a bit of trouble...If anyone is a fan of algebra and calculus can you take a moment to help me out?
The rdas are designed to cover the needs of ______% of the population
SOMEONE PLEASE HELP ME PLEASE PLEASE ON LETTER A.