c++ thx
12. In mathematics, the cosine function can be characterized by the power series: (10 marks) 2 2!4!6! The accuracy of cosine function evaluated by using the series increases with the number of terms in the right hand side devoted by t, where t is a positive integer (t 2 1). For example, t cos (x) 2 2 2 1 2 2 24 2!4! (a) Write a function, int factorial(int x), which calculates the factorial of
OR
OR