Use a for loop to calculate factorial(10):
f=10×9×8×7×6×5×4×3×2×1
(b) Now use factorial() function and compare the answers. 2. The following series can be written with a shorthand form of sigma notation (A). Use for loop syntax to calculate this arithmetic series:1

+ 2×3
1

+ 3×4
1

+…+ n×(n+1)
1

A=∑ n×(n+1)
1

;n=[1:10000]

(b) Now use a vector operation instead of a loop to calculate
A