I'm doing 1 calculator that adds values entered by the user and when the values of the sums reach 1000 or exceed, the loop ends.
So far so good, the problem is to be able to identify the highest value entered by the user
Each time the loop rotates, I put the current value of var = i
into an array so that all values entered by the user are stored in it.
At the end all values will be inside the array, but how do you find the largest of them?