# Michael Cusack # Project 7-5 r = float(raw_input("What is the interest rate: ")) p = float(raw_input("What is the initial principal: ")) y = int(raw_input("How many years in fund: ")) f = p for x in range(y): f += f * (r / 100) o = f - (f * (r/100)) i = f * (r/100) print "%i > $%f > $%f > $%f"%(x + 1,o,i,f)