mins = 9*99
while 1:
a = int(input())
if a == 0:
break
elif -100 <= a <= 100:
if a % 2 == 0:
if a < mins:
mins = a
else:
print("Число не в отрезке [-100;100]")
if mins != 9*99:
print(mins)
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
mins = 9*99
while 1:
a = int(input())
if a == 0:
break
elif -100 <= a <= 100:
if a % 2 == 0:
if a < mins:
mins = a
else:
print("Число не в отрезке [-100;100]")
if mins != 9*99:
print(mins)