Google News
logo
PL/SQL - Interview Questions
Write a PL/SQL script to display the following series of numbers: 99,96,93……9,6,3?
SET SERVER OUTPUT ON
DECLARE
BEGIN
FOR i IN REVERSE 1..99
LOOP
IF Mod(i,3) = 0 THEN
DBMS_OUTPUT.PUT_LINE(i);
END IF;
END LOOP;
END;
/
Advertisement