#NUMBER OF EVEN NUMBERS IN ALPHANUMERIC:
s=input()
c=0
for i in range(len(s)):
if(s[i]=="0" or s[i]=="2" or s[i]=="4" or s[i]=="6" or s[i]=="8"):
c+=1
print(c)
#ANOTHER method
s=input()
c=0
for i in s:
if(i.isnumeric()):
if(int(i)%2==0):
c+=1
print(c)
No comments:
Post a Comment