Computer Science, asked by lakshyashaurya, 5 months ago

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 da4729204
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