Basic Program To Find Maximum out of Given Numbers

REM FIND MAXIMUM OUT OF GIVEN NUMBERS
LET MAX = 1
INPUT “ENTER HOW MANY NOS.=”; N
FOR I = 1 TO N
INPUT “ENTER THE NUMBER”; NUMBER
IF NUMBER > MAX THEN MAX = NUMBER
NEXT I
PRINT MAX
END

Please follow and like us:

Leave a comment