Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 1

Experiment-7

Aim
Write a function in MATLAB for the factorial to compute n! for n=50

Code
f=1; for n=1:1:50 f=f*n; end fact=f

Output
fact =

3.0414e+064

You might also like