dnee3051 dnee3051
  • 20-10-2020
  • Computers and Technology
contestada

Write a program that takes a three digit number (input) and prints its ones, tens and hundreds digits on separate lines

Respuesta :

Cytokine
Cytokine Cytokine
  • 20-10-2020

In python:

number = input("Enter your number ")

i = 0

while i < len(number):

   print(number[i])

   i += 1

Answer Link

Otras preguntas

If you are experiencing winds that are described as "southerlies," the winds are flowing from which direction?
what was a common goal of the 13th, 14th, and 15th admendements to the United states constitution?
The requirement of having to consume more of the drug to get high is a psychological or emotional sign of addiction. True or false
Which angle measures closest to 90°?
Thomson's cathode ray experiment showed that: a. protons are positively charged b. neutrons are neutral c. electrons are negatively charged d. the nucleus is n
How does your heart rate relate to the circulatory and digestive system?
A person who is especially motivated to avoid harm a. has lost his or her self guide. b. is engaging in promotion focus. c. is engaging in prevention focus. d.
A spaceship moving through deep space will continue moving at the same speed forever. What is the name of the property that allows this to happen? A. Force
In fullerenes, carbon atoms link together to form _____?
Allie bought some DVDs for $14.99 each. Which expression below represents Allie's cost for d DVDs?