WAP to find greatest number among given three number
CLS
INPUT"ENTER ANY NUMBER";A
INPUT"ENTER ANY NUMBER";B
INPUT"ENTER ANY NUMBER";C
IF A > B AND A > C THEN
PRINT"THE GREATEST NUMBER IS";A
ELSE IF B > A AND> C THEN
PRINT"THE GREATEST NUMBER IS";B
ELSE
PRINT"THE GREATEST NUMBER IS"C
END IF
END
INPUT"ENTER ANY NUMBER";A
INPUT"ENTER ANY NUMBER";B
INPUT"ENTER ANY NUMBER";C
IF A > B AND A > C THEN
PRINT"THE GREATEST NUMBER IS";A
ELSE IF B > A AND> C THEN
PRINT"THE GREATEST NUMBER IS";B
ELSE
PRINT"THE GREATEST NUMBER IS"C
END IF
END
Comments
Post a Comment