ACCEPT THREE NUMBER AND DISPLAY LARGEST ONE USING PL/SQL

*****************************************************
ACCEPT THREE NUMBER AND DISPLAY LARGEST ONE

DECLARE
A INT;
B INT;
C INT;
LARGE INT;
BEGIN
A:=&A;
B:=&B;
C:=&C;
IF A>B AND A>C THEN
LARGE:=A;
ELSIF B>C AND B>A THEN
LARGE:=B;
ELSE
LARGE:=C;
END IF;
DBMS_OUTPUT.PUT_LINE('LARGEST NUMBER: '|| LARGE );
END;

*******************************************************
Previous
Next Post »