
-----------------------------------
Comp.Sci
Thu Oct 13, 2011 5:36 pm

Looping Trouble
-----------------------------------
Here is the question:

The Series 1/1 + 1/2 + 1/3 + 1/4 + ? is a divergent series. Create a program that will help us examine this claim. Your program will have the user enter the number of terms from the series and tell them the sum to three decimals. An example of a run: 
Enter the number of terms:4
2.083
----------------------------------------------------
I'm not too worried about the three decimal place total, it's the looping that concerns me... I have done this on paper and made a table... everything seems fine.
The problem is that i keep getting 2 as my total, for any term I input. 

term=input("Enter the number of terms:")
total=1
div=0    #Counter
x=1      #Numerator
y=0      #Denominator
total=1
while div