DISPLAY GRETEST AMONG THREE NUMBERS(SUB)
DECLARE SUB GREAT (A,B,C)
CLS
INPUT " ENTER FIRST NO";A
INPUT"ENTER SECOND NO";B
INPUT"ENTER THIRD NO";C
CALL SUB
END
SUB GREAT(A,B,C)
IF A>B AND A>C THEN
PRINT "THE GREATEST NO IS";A
ELSEIF B>A AND B>C THEN
PRINT "THE GREATEST NO IS";B
ELSE
PRINT "THE GREATEST NO IS";C
END IF
END
CLS
INPUT " ENTER FIRST NO";A
INPUT"ENTER SECOND NO";B
INPUT"ENTER THIRD NO";C
CALL SUB
END
SUB GREAT(A,B,C)
IF A>B AND A>C THEN
PRINT "THE GREATEST NO IS";A
ELSEIF B>A AND B>C THEN
PRINT "THE GREATEST NO IS";B
ELSE
PRINT "THE GREATEST NO IS";C
END IF
END
Comments
Post a Comment