# Program to calculate Future Value of an Investment # CS105 Lab # print "This program calculates the value of an investment in arbitrary years" principal = input("Enter the initial principal: ") apr = input("Enter the annual interest rate: ") years = input ("Enter the years of the investment: ") for index in range (years): principal = principal * (1 + apr) print "The value in ", years, "years is: ", principal