Question: can anyone explain how this code works? i made it myself for a project that displays the max and min of a user input. i

can anyone explain how this code works?
i made it myself for a project that displays the max and min of a user input. i understand the algorithm mostly, but don't really understand why it works . it was alot of trial and error. Mainly, how does the program know to save the amount of inputs that you answer on line 6? also, what is the purpose of line 11?

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!