11. Display greatest among three number
CLS
INPUT ''Enter any number''; N
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
INPUT ''Enter any number''; N
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
Comments
Post a Comment