Question: Write a MATLAB program to determine the factorial value of an input integer between 1 and 30. You may NOT use the built-in factorial function.
Write a MATLAB program to determine the factorial value of an input integer between 1 and 30. You may NOT use the built-in factorial function. You must implement it using a for loop. Display the result back to the user with 2 decimal places (yes, 2 decimal places). The result should follow the following format: The factorial value is *.xx
I've seen several answers to this question... I need to know how to enter the code into the Matlab program.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
