Object: Write a program which can find the largest number of given three numbers.
10 REM * PROGRAM TO FIND LARGEST NUMBER *
20 CLS
30 INPUT "ENTER FIRST NUMBER";A
40 INPUT "ENTER SECOND NUMBER";B
50 INPUT "ENTER THIRD NUMBER";C
60 IF A>B AND A>C THEN PRINT "GREATER NUMBER IS";A:END
70 IF B>A AND B>C THEN PRINT "GREATER NUMBER IS";B:END
80 IF C>A AND C>B THEN PRINT :GREATER NUMBER IS";C:END
END
0 comments:
Post a Comment