Advertisement
Jorell_Ramos_Sinaga

Untitled

Dec 18th, 2021
42
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. n1 = int(input())
  2. n2 = int(input())
  3. n3 = int(input())
  4. n4 = int(input())
  5. n5 = int(input())
  6.  
  7. lista =[n1,n2,n3,n4,n5]
  8.  
  9. i = 0
  10. pares = 0
  11. while(i < len(lista)):
  12. if(lista[i] %2 == 0):
  13. pares = pares + 1
  14.  
  15. i = i +1
  16.  
  17.  
  18. print ("%d valores pares" %pares)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement