- declare
- i integer;
- j integer;
- begin
- for i in 1..5
- loop
- for j in 1..i
- loop
- dbms_output.put('*');
- end loop;
- dbms_output.put_line('');
- if i=5 then
- for j in reverse 1..i
- loop
- for i in 1..j
- loop
- dbms_output.put('*');
- end loop;
- dbms_output.put_line('');
- end loop;
- end if;
- end loop;
- end;
Outputnya
Ada yang kurang jelas silahkan ditanyakan........