Question: using MATLAB Problem 4: Let the user enter any integer N and use a while loop to calculate the factorial of this number. Note that,
Problem 4: Let the user enter any integer N and use a while loop to calculate the factorial of this number. Note that, the factorial of any number N is the product of all the integers from N to 1: Factorial of N=N* N-1 * N-2 * N-3......1 Also, use a counter to know the number of loops need in this process to find the factorial. Then, display the following sentences in the command window: Factorial of N: N! - # # # # # # Number of loops need to find N! is ####
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
