May 1, 2013 at 3:21pm
Hi everyone, i have a question and i need advises from u all...
QUESTION: Write an algorithms for the sum of series, 1+1/2+1/3+1/4+...+1/n, where n is entered by users..
Can someone help me to write this program ???
May 1, 2013 at 3:53pm
You learn more by doing.
One loop. Each iteration adds one term to the sum.
May 1, 2013 at 3:55pm
Pretty simple pattern. Use a for loop from 1 to n.