Write a program in Python to enter a number and find the number of even digits and odd digits in a given number
Answers
Answered by
0
Answer:
a = input ('Enter a number to calculate even and odd digits in it')
counter = 0
for i in range(0,len(a)):
if(int(a[i])%2==0):
counter += 1
print(" Even digits are ", counter)
Similar questions