vendredi 11 juin 2021

How to print this pattern in PL/SQL

   *
   # *
   * # *
   # * # *
   * # * # *

how can i print this pattern in PL/SQL

declare
c number:=1;
i number;
j number;
begin 
for i in 1..5
loop 
    for j in 1..i
    loop
    dbms_output.put(*);

    end loop;

    dbms_output.new_line;

end loop;

end;
/ 

i have tries this but don't know how to include # position wise

Aucun commentaire:

Enregistrer un commentaire