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.
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
Get step-by-step solutions from verified subject matter experts
