Question: Java factorial problem Create a package named factorial and write a program to compute the Factorial Function using a loop and print out the results.

Java
 Java factorial problem Create a package named factorial and write a

factorial problem Create a package named factorial and write a program to compute the Factorial Function using a loop and print out the results. Note that the user can continue computing factorials because you will have an outer while loop which will continue executing as long as the user responds with a 'y' to the "Do you want to continue" question The Factorial function is Factorial(N)N (N-1) (N-2)1 Sample output should look like Enter in N: 3 Factorial 6 Do you want to continue? (y): y Enter in N: 4 Factorial 24 Do you want to continue? (y): y Enter in N: 6 Factorial 720 Do you want to continue? (y): n Have a good day

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!