Monday, October 14, 2019

To display greatest among three numbers

                          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

              5  days and 4 night Educational Tour We travel not to escape life but for life not to escape us . O ur school organized educ...