Problem 1 Write two programs which print the message I will not be late for class a total of 20 times. The first program should use a while loop and the second should use a for construct.
All variables are of type int .
This means, you should use x 0 and equation 1 to compute x 1 then use x 1 and equation 1 again to get x 2 etc. etc. Now, lets be a bit more general. Assuming that converges to something for show that it converges to . What this means is that for n really large, you can assume . By making this assumption and using equation 1, you should be able to show that this means the sequence goes to .