New course! Every coder should learn Generative AI!
Try a free lesson+ 2
-Make an array of 20 elements and a variable called "max"
-Keep reading input and have a counter to store its index, increment that by one on each read and store input on array[counter]
-Inside the reading loop (or outside by iterating the array) if the number read is greater than the past "max" number, store that number in the "max" variable.