Question: Before the question was: Answer: ********* NOW THE UPGRADED QUESTION *********** ******THANK YOU!!!!!! 4) Write (NOT copy and paste) the PL/SQL function FACTORIAL(N). Write a

Before the question was:

Before the question was: Answer: ********* NOW THE UPGRADED QUESTION *********** ******THANK

Answer:

YOU!!!!!! 4) Write (NOT copy and paste) the PL/SQL function FACTORIAL(N). Write

********* NOW THE UPGRADED QUESTION ***********

a main program with a FOR loop that sends to the screen

******THANK YOU!!!!!!

4) Write (NOT copy and paste) the PL/SQL function FACTORIAL(N). Write a main program with a FOR loop that sends to the screen the factorials of all numbers from 1 to 10. Each row should contain the row count and the factorial. Like this. 1 1 22 3 6 4 24 5 120 6 720 7 5040 8 40320 9 362880 10 3628800 create or replace function factorial(num in number) return number as Begin if num=0 then return 1; else return num * factorial(num-1); end if; end; | 5) Change the Factorial function from HWK 1 into a PROCEDURE with one IN parameter and one OUT parameter that computes the factorial. In other words, when you call FACTORIAL(5, X), then the variable X should contain nothing in the beginning and the value 120 at the end. Write a main program with a FOR loop that sends to the screen the factorials of all numbers from 1 to 12. Each row should contain the row count and the factorial. Like this. 1 1 2 2 3 6 4 24 5 120 6 720 7 5040 8 40320 9 362880 10 3628800 11 12

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!