Python:
numbers = []
while True:
number = int(input())
if number == 0: break
numbers.append(number)
print(max(numbers), min(numbers))
Python:
numbers = []
while True:
number = int(input())
if number == 0: break
numbers.append(number)
print(max(numbers), min(numbers))