num1=int(input("Enter the value of the savings:")) num2=num1 num3=0 print("starting value", num2) while num3 != 10: num2=num2 / 100 * 5 num1=num1+num2 num3=num3+1 print("after", num3, "years", num1) num2=num1