Question: Need help fixing my code. No matter what I try I am always off by + 1 . Can NOT change the last two lines.

Need help fixing my code. No matter what I try I am always off by +1. Can NOT change the last two lines. 546384.3926266.q\times 3zqy7
The sum of the reciprocals 1+12+13+14+dots is infinite. Write a program that reads in a target and finds the first n such
that 1+12+13+cdots+1n> target.
1 total =0
2n=1
3
4 target = float input ()
 Need help fixing my code. No matter what I try I

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!