Social Icons

Tuesday, 3 December 2013

Printing pattern in PL/SQL

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;

OUTPUT :


** 
*** 
**** 
*****

No comments:

Post a Comment

 

Sample Text

Sample text

 
Just Programming Cse DriveReputation Management