WRITE A PL/SQL PROGRAM FOR ACCEPTING THREE NUMBER AND DISPLAY LARGEST ONE

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 »