Advertisement
Guest User

Untitled

a guest
Nov 11th, 2019
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.22 KB | None | 0 0
  1. even = 0
  2. odd = 0
  3. while even < 10:
  4.     string = int(input("Введите число: "))
  5.     if string == 0:
  6.         continue
  7.     elif string %2 == 0:
  8.         even+=1
  9.     elif string %2 != 0:
  10.         odd+=1
  11. print(odd)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement