declare
total_counter1 number :=&10;
total_counter2 number :=&10;
i number :=1;
j number :=1;
begin
<<outerloop>>
for i in 1..total_counter1
loop
<<inneroop>>
for j in reverse 1..i
loop
dbms_output.put('- ');
end loop innerloop;
dbms_output.put_line(i);
end loop outerloop;
i :=1;
j :=1;
begin
<<outerloop>>
for i in 1..total_counter1
loop
<<inneroop>>
for j in i..total_counter2
loop
dbms_output.put('- ');
end loop innerloop;
dbms_output.put_line(i);
end loop outerloop;
end;
end;
total_counter1 number :=&10;
total_counter2 number :=&10;
i number :=1;
j number :=1;
begin
<<outerloop>>
for i in 1..total_counter1
loop
<<inneroop>>
for j in reverse 1..i
loop
dbms_output.put('- ');
end loop innerloop;
dbms_output.put_line(i);
end loop outerloop;
i :=1;
j :=1;
begin
<<outerloop>>
for i in 1..total_counter1
loop
<<inneroop>>
for j in i..total_counter2
loop
dbms_output.put('- ');
end loop innerloop;
dbms_output.put_line(i);
end loop outerloop;
end;
end;
No comments:
Post a Comment