One trick that is useful in finding the max and the min of a value is to initialize the starting value for the max to a number smaller than the smallest data value and the starting value for the min...
Type: Posts; User: Norm
One trick that is useful in finding the max and the min of a value is to initialize the starting value for the max to a number smaller than the smallest data value and the starting value for the min...
You should try debugging your code by adding println statement to show the values of variables as they change and to show logic flow.
Can you show what the output should look like? I don't...