Question: Write a function called fact which takes in a paramenter n and returns n! Please use a for loop, do not copy the example
Write a function called fact which takes in a paramenter n and returns n! Please use a for loop, do not copy the example on the MATLAB help guide e.g. fact (5) should return 5! = 120
Step by Step Solution
There are 3 Steps involved in it
Certainly To write a MATLAB function called fact that computes the factorial of a number n using a f... View full answer
Get step-by-step solutions from verified subject matter experts
