Wap to input three integers and print the largest one of three
Answers
Answered by
4
CLS
INPUT "ENTER THREE INTEGERS"; A, B, C
IF A>B AND A>C THEN PRINT "A IS THE LARGEST NUMBER"
ELSE IF B>A AND B>C THEN PRINT "B IS THE LARGEST NUMBER"
ELSE PRINT "C IS THE LARGEST NUMBER"
END
INPUT "ENTER THREE INTEGERS"; A, B, C
IF A>B AND A>C THEN PRINT "A IS THE LARGEST NUMBER"
ELSE IF B>A AND B>C THEN PRINT "B IS THE LARGEST NUMBER"
ELSE PRINT "C IS THE LARGEST NUMBER"
END
Similar questions