Write a program that determines the maximum number in a sequence of integers. the program receives

Write a program that determines the maximum number in a sequence of integers. the program receives integers as input, the number of entered numbers is unknown. the sequence of numbers ends with the number 0. The number of numbers does not exceed 1000. The entered numbers do not exceed 30000 in absolute value. The program should output one maximum number.

Let’s create an empty array a, which will be sequentially filled with elements entered by the user from the keyboard until the user enters 0.

Then, using the for loop, we iterate over all the elements of the array, and thanks to the if condition, we find among them the element with the largest value and display it. As a result, we get the following program:

a = []
max = 0
i = int (input ())
while i! = 0:
a.append (i)
i = int (input ())
for i in range (len (a)):
if a [i]> max:
max = a [i]
print (max)



One of the components of a person's success in our time is receiving modern high-quality education, mastering the knowledge, skills and abilities necessary for life in society. A person today needs to study almost all his life, mastering everything new and new, acquiring the necessary professional qualities.