To display greatest among 3 numbers
CLS
INPUT "Enter any three number"; A,B,C
IF A>B and B>C THEN
PRINT "The greatest number is";A
ELSE IF B>A and B>C THEN
PRINT "The greatest number is ";B
ELSE
PRINT "The greatest number is";C
END IF
END
No comments:
Post a Comment