Answer to Question #266044 in Databases | SQL | Oracle | MS Access for sayani

Question #266044

num number:= #

fact number:= 1;

temp number;

begin

temp := num;

while (num > 0)

loop

fact := fact * num;

num := num - 1;

end loop;

Dbms_Output.Put_line('factorial of ' || temp || ' is ' || fact);


1
Expert's answer
2021-11-14T17:02:17-0500

Program calculates factorial of a number (num number) in PL/SQL



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