Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- count = 0
- summa = 0
- while 1:
- num = int(input('Введите число: '))
- if num % 2 == 0:
- count += 1
- if num % 2 == 1:
- summa += num
- if count == 5:
- print(summa)
- break
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement