News:

Download Pelles C here: http://www.smorgasbordet.com/pellesc/

Main Menu

PLEASE HELP

Started by kiki, February 29, 2008, 04:05:00 PM

Previous topic - Next topic

kiki

Hello!!!
I am supposed to write a program that computes the partial sum of harmonic series.  I have no clue on how to start this question neither what it is suppose to print.   

Thank you 

QUESTION:
Write a program to compute the partial sum of harmonic series
1 + 1/2 + 1/3 + L + 1/n
and display the intermediate partial sums. Hint: Use a for loop.

DMac

Here is a link that will get you off to a good start on your journey of discovery.
http://www.math.utah.edu/~carlson/c/cbook.pdf

--DMac

It is the glory of God to conceal a thing: but the honour of kings is to search out a matter. (Pr 25:2)
No one cares how much you know,
until they know how much you care.

severach

Quote from: kiki on February 29, 2008, 04:05:00 PM
neither what it is suppose to print.   
This tells me you might need to study up on Harmonic Series Sums. Once you get that the coding looks trivial.