Answer to Question #257612 in Databases | SQL | Oracle | MS Access for Tarurendra Kushwah

Question #257612

Write a procedure and call it into main pl/sql program to find a factorial of a number.


1
Expert's answer
2021-10-27T16:22:29-0400
declare
fact number :=1;
num number := &1;
begin			
while num > 0 loop
fact:=num*fact;		
num:=num-1;		
end loop;	
dbms_output.put_line(fact);
end;			

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS