Write a program that calculates the harmonic value for a given number of terms. 

The harmonic value is calculated using the series formula

  h = 1 + 1/2 + 1/3 + 1/4 + 1/5 + 1/6 + 1/7 + ... 

Your program prompts for and accepts the number of terms to be used in calculating the value.  Your program displays the value to 6 decimal places.


  Top  Go Back to the Top of this Page

  Designed by Chris Szalwinski   Copying From This Site