here is a program
MAX = -1
For n = 1 to 10
INPUT X
IF X > MAX THEN
MAX = X
ENDIF
NEXT
OUTPUT MAX
The purpose is to find the largest one of 10 the input numbers(integer) input by the user.
However,the final outcome will be -1 if all the 10 input no. are smaller than -1
My question is how to solve this problem so that whatever the user input (integer), the program can still find out the largest one from the 10 input numbers.
Thanks very much