flag = 0
while True:
k = int(input())
if k == 0:
break
if k > 0 and k % 2 == 0:
flag += 1
Copyright © 2025 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
flag = 0
while True:
k = int(input())
if k == 0:
break
if k > 0 and k % 2 == 0:
flag += 1