Write an algorithm to input a number and check whether it is a 3-digit number or not.
Answers
Answered by
4
Answer:
In Python:
num = input("Enter your number: ")
if len(num) == 3:
print("Three Digits.")
elif len(num) ==3:
print("Not Three Digits")
Explanation:
Similar questions