Answer:
The program in Python is as follows:
numList = []
num = int(input())
while num != 0:
numList.append(num)
num = int(input())
numList.sort()
for num in numList:
print(num)
Step-by-step explanation:
This initializes the list
numList = []
This gets input from the user
num = int(input())
This loop is repeated until the user enters 0
while num != 0:
This appends the user input to the list
numList.append(num)
This gets another input from the user
num = int(input())
This sorts the list in ascending order
numList.sort()
This iteration prints the list elements, each on a line
for num in numList:
print(num)