WRITE A PL/SQL PROGRAM FOR EVEN NUMBER BETWEEN 1 TO 100

EVEN NUMBER BETWEEN 1 TO 100

DECLARE
NUM INT;
BEGIN
DBMS_OUTPUT.PUT_LINE('EVEN NUMBERS: ');
FOR NUM IN 1..100
LOOP
IF MOD(NUM,2)=0 THEN
DBMS_OUTPUT.PUT_LINE(' '||NUM);
END IF;
END LOOP;
END;
Previous
Next Post »