write a program to input a number and count the number of digits. The program further checks whether the number contains odd number of digits or even number and displays the output accordingly.sample input :749
sample output : number of digits =3
the number contains odd number of digits
Answers
Answered by
0
Answer:
first tell me in which language you wNt program.
Answered by
1
count = 0
num1 = int(input("Enter your number: "))
while (number > 0):
number = number//10
count = count + 1
print("Total number of digits: ", count)
Similar questions
Hindi,
1 month ago
Computer Science,
1 month ago
Music,
4 months ago
Chemistry,
10 months ago
Math,
10 months ago