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;
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;