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