Not able to understand this question.. Please help !

Write a program using the function SeqSum() with two arguments, double x and int n. The function
should return a value of type double and it should find the sum of the following series.
1+ x/2! + x2/4! + x3/6! + x4/8! + x5/10! + ----------+ xn/(2n)!
functions:
http://www.cplusplus.com/doc/tutorial/functions/

loops:
http://www.cplusplus.com/doc/tutorial/control/

That's all you need really. just loop until you reach your 'n'. and keep a running total of your calculation (i.e. declare a variable to hold this before you start your loop).
Topic archived. No new replies allowed.