set serveroutput on;
set verify off;
declare
i int;
j int;
begin
for i in 1..5 loop
dbms_output.put_line('');
for j in 1..i loop
dbms_output.put('*');
end loop;
dbms_output.new_line;
end loop;
end;
set verify off;
declare
i int;
j int;
begin
for i in 1..5 loop
dbms_output.put_line('');
for j in 1..i loop
dbms_output.put('*');
end loop;
dbms_output.new_line;
end loop;
end;
OUTPUT :
*
**
***
****
*****
**
***
****
*****
No comments:
Post a Comment