Mode:
Duration:
1
2
3
4
5
6
7
8
9
10
11
DECLARE
type num_array IS TABLE OF NUMBER INDEX BY PLS_INTEGER;
nums num_array;
BEGIN
nums(1) := 1; nums(2) := 2; nums(3) := 3; nums(4) := 4; nums(5) := 5;
FOR i IN 1..5 LOOP
IF MOD(nums(i), 2) = 0 THEN
DBMS_OUTPUT.PUT_LINE('Even: ' || nums(i));
END IF;
END LOOP;
END;Coding works best on desktop or with an external keyboard.