mins = "нет"
while 1:
a = int(input())
if a == 0: break
elif a % 3 == 0:
if mins == "нет":
mins = a
elif mins <= a:
print(mins)
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
mins = "нет"
while 1:
a = int(input())
if a == 0: break
elif a % 3 == 0:
if mins == "нет":
mins = a
elif mins <= a:
mins = a
print(mins)