arr = []
while True:
inpt = int(input())
if inpt == 0:
break
else:
arr.append(inpt)
print(min(arr))
number = int(input())
minimum = number
while number != 0:
if minimum > number:
print(minimum)
Copyright © 2025 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
arr = []
while True:
inpt = int(input())
if inpt == 0:
break
else:
arr.append(inpt)
print(min(arr))
inpt = int(input())
while inpt!=0:
arr.append(inpt)
inpt = int(input())
print(min(arr))
Verified answer
number = int(input())
minimum = number
while number != 0:
if minimum > number:
minimum = number
number = int(input())
print(minimum)