WRITE A PL/SQL PROGRAM TO DISPLAY 1 TO 10 IN REVERSE ORDER USING FOR LOOP

 TO DISPLAY 1 TO 10 IN REVERSE ORDER

DECLARE
I NUMBER:=10;
BEGIN
DBMS_OUTPUT.PUT_LINE('REVERSE NUMBER 1-10 ');
FOR I IN REVERSE 1..10 LOOP
   DBMS_OUTPUT.PUT_LINE(I);
END LOOP;
END;
Previous
Next Post »