FOR LOOP

FOR LOOP example

  
DECLARE 
	v_num NUMBER:=3;
BEGIN
	FOR i IN 1..v_num LOOP 
		v_num:=v_num+1;
		DBMS_OUTPUT.put_line(v_num);
	END LOOP;
END;

Output:

4
5
6