I'm suppose to write a program to compute the value of the infinite series 1+1/2+1/3+1/4+1/5.......
here is what I have so far, but of course it doesn't work
for (i=0; sum_oldvalue> epsilon; i++)
oldvalue = sum;
sum += 1/i;