ch,nch = 0,0
x = int(input())
while x != 0:
if x != 0 and x % 2 == 0:
ch += 1
else:
nch += 1
if ch > nch:
print("Четных больше")
elif nch > ch:
print("Нечетных больше")
print("Одинаково")
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
ch,nch = 0,0
x = int(input())
while x != 0:
if x != 0 and x % 2 == 0:
ch += 1
else:
nch += 1
x = int(input())
if ch > nch:
print("Четных больше")
elif nch > ch:
print("Нечетных больше")
else:
print("Одинаково")