WAP to display greatest among three numbers
CLS
INPUT"Enter first number";A
INPUT"Enter second number";B
INPUT"Enter third number";C
IF A>B and A>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