Question: Write a 'for' loop to compute the factorial of 1 0 0 ( i . e . compute the product of first 1 0 0

Write a 'for' loop to compute the factorial of 100(i.e. compute the product of first 100 natural numbers). Do not use the pre-existing "prod" or "factorial" functions in MATLAB, you must use the 'for' loop along with simple operations like multiplication. Set the value of the final output (i.e., factorial of 100) equal to the variable "nf".

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!