Nested FOR loops

0
Nested FOR loops:

SQL>DECLARE
    n NUMBER:=&no;
    v VARCHAR2(100);
    BEGIN
    FOR i IN 1..n
    LOOP
    FOR k IN 1..i
    LOOP
    v:=v||’ ‘||K;
    END LOOP;
    display(v);
    v:=null;
    END LOOP;
    END;


 Click here to go to Back page

About the author

Donec non enim in turpis pulvinar facilisis. Ut felis. Praesent dapibus, neque id cursus faucibus. Aenean fermentum, eget tincidunt.

0 comments:

Recent Posts