This is the solution of this problem in python:
a=float(input())
b=float(input())
c=float(input())
d=float(input())
e=float(input())
count=0
if(a%2==0):
count+=1
if(b%2==0):
count+=1
if(c%2==0):
count+=1
if(d%2==0):
count+=1
if(e%2==0):
count+=1
print("%i valores pares"%count)
No comments