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

How many stars and stripes did the first American flag have in Stars and Stripes
When a plane takes 52 minutes to fly 196 miles, about how many miles per hour does it average?
Is na2S an ionic compound,covalent compound,or acid
Identify the changes that art underwent in the late 20th century
find distance between -5 and 17
On a recent trip, Juan started at an elevation of 1200 feet above sea level. He descended into a valley 20.4 feet below sea level. Which of the following shows
Which of these groups of relative frequencies would be best represented by a pie chart? A.19%;19%;21%;20% B.33%;34%;33% C.2%;24%;16%;58% D.51%,49%
The box is 3 and 1 half feet long wide, and 3 feet high what is the volume of the box
Can someone answer the highlighted question!!! PLEASE
the average pumpkin weigh 6 lb the prize-winning pumpkin weighs 324 lb the prize-winning pumpkin weighs as much as how many average pumpkins