harmonic Series to compute the sum of a harmonic series where n=1000

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • loide25
    New Member
    • Sep 2019
    • 2

    harmonic Series to compute the sum of a harmonic series where n=1000

    how to write a harmonic series to compute the sum of a harmonic series 1+1/2+1/3+1/4+1/n,where n=1000.The program shall prompt the user for the value of n.Keep the sum in a double variable and take note that 1/2 gives 0 but 1.0/2 gives o.5.
  • dev7060
    Recognized Expert Contributor
    • Mar 2017
    • 655

    #2
    Follow the posting guidelines and mention what you've done so far for this. Would be happy to help then.

    Comment

    • gits
      Recognized Expert Moderator Expert
      • May 2007
      • 5388

      #3
      as dev7060 already mentioned - you need to show what you have done so far and ask specific questions where you have problems with. Show some effort and people will help you - but simply asking for someone doing all the work for you wont get you far - not in this forum and not in a professional life.

      Comment

      Working...