Greatest among 3 numbers
CLS
INPUT "Enter any 3 numbers "; A ,B, C
IF A >B and B>C THEN
PRINT "The greatest number ";A
ELSE IF B>A and B>C THEN
PRINT"The greatest number is ";B
ELSE
PRINT " The greatest number is ";l
END IF
END
INPUT "Enter any 3 numbers "; A ,B, C
IF A >B and B>C THEN
PRINT "The greatest number ";A
ELSE IF B>A and B>C THEN
PRINT"The greatest number is ";B
ELSE
PRINT " The greatest number is ";l
END IF
END
Comments
Post a Comment