write program for following series:

(i)1,2,6,24,120...........n times.
(ii)1,2,3,5,7,11..........n times.

aalu