CLS
' A PROGRAM TO FIND THE HIGHEST NUMBER BETWEEN 3 NUMBERS
INPUT "ENTER THE VALUE OF X ", X
INPUT "ENTER THE VALUE OF Y ", Y
INPUT "ENTER THE VALUE OF Z ", Z
IF X > Y AND X > Z THEN
PRINT "X HAS THE HIGHEST NUMBER"
ELSEIF Y > X AND Y > Z THEN
PRINT "Y HAS THE HIGHEST NUMBER"
ELSE
PRINT "Z HAS THE HIGHEST NUMBER"
END IF
END
PROGRAM RESULT
' A PROGRAM TO FIND THE HIGHEST NUMBER BETWEEN 3 NUMBERS
INPUT "ENTER THE VALUE OF X ", X
INPUT "ENTER THE VALUE OF Y ", Y
INPUT "ENTER THE VALUE OF Z ", Z
IF X > Y AND X > Z THEN
PRINT "X HAS THE HIGHEST NUMBER"
ELSEIF Y > X AND Y > Z THEN
PRINT "Y HAS THE HIGHEST NUMBER"
ELSE
PRINT "Z HAS THE HIGHEST NUMBER"
END IF
END
PROGRAM RESULT
0 Comments
If you have further concerns, kindly drop a comment.