Python:
numbers = []
while True:
number = int(input())
if number == 0: break
numbers.append(number)
print(max(numbers), min(numbers))
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
Python:
numbers = []
while True:
number = int(input())
if number == 0: break
numbers.append(number)
print(max(numbers), min(numbers))