Exp 5
Exp 5
Function created.
2 begin
4 return 1;
5 else
7 end if;
8 end fib;
9 /
OUTPUT:
Function created.
1 1 2 3 5 8
l_input :31/10/2005
l_output :12
l_input :12
l_output :3
------------------------------
lucky number is:3
PL/SQL procedure successfully completed.
SQL> declare
2 num number;
3 rev number;
4 begin
5num:=2345;
6 rev:=0;
8 rev:=(rev*10)+mod(num,10);
9 num:=floor(num/10);
10 end loop;
12 end;
13 /
OUTPUT: