Q) Write a PL/SQL block that Calculate smallest of three number.


set serveroutput on ;

 declare

     a number ;

     b number ;

     c number ;

 begin

     a:= &a ;

     b:= &b ;

     c:= &c ;

    if (a<b) and (a<c)then

          dbms_output.put_line(‘Smallest number is : ’||a) ;

    elsif (b<a) and (b<c) then

          dbms_output.put_line(‘Smallest number is : ’||b) ;

     else

          dbms_output.put_line(‘Smallest number is : ’||c) ;

    end if ;

end ;

/