www.itechowais.tech






PL/SQL program to display all odd numbers from 11 to 40 using ‘while loop’



set serveroutput on ;

 declare

    num number := 11 ;

 

begin

    while num <= 40

    loop

       dbms_output.put_line(num) ;

    num := num +2 ;

   end loop ;

end ;

/