Tuesday, 22 October 2019

Display greatest among three number

CLS
INPUT"Enter any number";A,B,C
IF A>B and B>C THEN
PRINT"The given number is";A
ELSEIF B>A and B>C THEN
PRINT"The greatest number is";B
ELSE
PRINT"The greatest number";C
ENDIF
END

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home