def add_fracs_while(n):
    """
    Returns the sum of the fractions 1/1 + 1/2 + ... + 1/n
    
    Parameter n: The number of fractions to add
    Precondition: n is an int > 0
    """
    # Accumulator
    v = 0           # call this 1/0 for today
    
    # Loop variable
    i = 1
    while i <= n:
        v = v + 1.0 / i
        i = i + 1
    
    return v