I need a program that takes n as a parameter and returns the sum of the first n elements in the sequece:
1/2+2/3+3/4+....+(n/n+1)
where n is equal to 8.
The function needed to be named as 'sum' and it should be a recursive function.
pls be as simple as possible and not using iostream.h
thx a lot!