Reverse a Number on PL/SQL Loop
Reverse a Number on PL/SQL Loop
Topic Introduction: Here we will show how to display a series of numbers by using PL/SQL Loop. example series no as 99,96,93……9,6,3?
SET SERVER OUTPUT ONDECLAREBEGINFOR i IN REVERSE 1 .. 99LOOPIF MOD (i, 3) = 0THENDBMS_OUTPUT.PUT_LINE (i);END IF;END LOOP;END;/
No comments