asked 184k views
2 votes
Write a program that takes a three digit number (input) and prints its ones, tens and hundreds digits on separate lines

asked
User BoeseB
by
7.6k points

1 Answer

6 votes

In python:

number = input("Enter your number ")

i = 0

while i < len(number):

print(number[i])

i += 1

answered
User Zelleriation
by
8.8k points

No related questions found

Welcome to Qamnty — a place to ask, share, and grow together. Join our community and get real answers from real people.