Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Function to return factorial of a number in PLSQL
declare num int:=5; res int; function fact(num IN int) return int AS f int; begin f:=1; for i in 1..num loop f:=f*i; end loop; return f; end fact; begin dbms_output.put_line('FINDING FACTORIAL OF:'||num); res:=fact(num); dbms_output.put_line('FACTORIAL IS:'||res); end;
run
|
edit
|
history
|
help
0
Aufgaben laut Benutzer durchsuchen
7
MIX
Srinivas
test out
Srinivas
bcom
sss
addition of arrays
Srinivas