WAP to find the greater among three number
CLS
INPUT " Enter and three number"; N
IF A > B AND B > C THEN
PRINT "Greater number is "; A
ELSEIF B > A AND B > C THEN
PRINT "Greater number is ": B
ELSE
PRINT "Greater number is ";C
END IF
END
INPUT " Enter and three number"; N
IF A > B AND B > C THEN
PRINT "Greater number is "; A
ELSEIF B > A AND B > C THEN
PRINT "Greater number is ": B
ELSE
PRINT "Greater number is ";C
END IF
END
Comments
Post a Comment