startval = int(input("Enter the value of the savings: ")) print("Starting value", startval) for i in range(10): startval = ((5*startval)/100)+startval print("after", i + 1, "years:", startval)