num = int(input("Enter the value of the savings:")) start = num oneyear = num + (num/100)*5 twoyear = oneyear + ((oneyear/100)*5) threeyear = twoyear + ((twoyear/100)*5) fouryear = threeyear + ((threeyear/100)*5) fiveyear = fouryear + ((fouryear/100)*5) sixyear = fiveyear + ((fiveyear/100)*5) sevenyear = sixyear + ((sixyear/100)*5) eight = sevenyear + ((sevenyear/100)*5) nine = eight + ((eight/100)*5) ten = ((nine/100)*5) print("Starting value:",num) print("After 1 year:",oneyear) print("After 2 year:",twoyear) print("After 3 year:",threeyear) print("...") print("After 10 years:",ten)