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
s
Srinivas
ff
create table employees as e. No, e. Name., e. Phone no, e. Salary
test out
Srinivas
[Manutenção] Prova Supero - Oracle
HELLO WORLD
Factorial from SQL
Srinivas