Answer:
while True:
num = int(input())
if num <= 0:
break
if num % 2 == 0:
print(num)
Step-by-step explanation:
The while loop runs indefinitely until it encounters a non-positive integer input. Within the loop, we read the integer input using input() and convert it to an integer using int(). We then check if the integer is positive or not. If it is not positive, we break out of the loop. If it is positive, we check if it is even by checking if the remainder after dividing by 2 is 0. If it is even, we print it out using print().