Question

Q-2: Write a program using for loop to compute factorial. Suppose 5!=1 x 2 x 3 x 4 x 5. Hints: x=1; for i=1:n X=x*i;

Fig: 1

Fig: 2