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

which expression is equivalent to -28xy+35y
On a piece of paper, use a protractor to construct a triangle with angle measures of 30° and 40°. Select from the drop-down menu to correctly classify the trian
Which global health issues do federal agencies address? A. The threat of bioterrorism B. The risks of secondhand smoke C. The need for clean
A marine scientist concluded that the Canary Islands were not formed by volcanic activity because his data showed that the fault on which the islands lies was i
Which description applies to all of an element
A car travels 400 miles in 8 hours at a constant rate. If the distance traveled by the car can be represented as a function of the time spent driving, what is t
What is the problem Donald Sadoway is trying to resolve?
Identify two liberties that Shakespeare takes with history in Macbeth
All even please!! Thank you show work please
is -x+4y= -2 a direct variation