2 comments:

  1. This comment has been removed by the author.

    ReplyDelete
  2. amount=int(raw_input("enter the amount "))
    year=int(raw_input("enter the year "))
    total=0
    total2=0
    total3=0
    for year in range(1,year+1):
    if year==1:
    total=amount+amount*14/100
    print total
    elif year==2:
    total2=total+amount*15/100
    print total2
    elif year==3:
    total3=total2+amount*16/100
    print total3
    enter the amount 2000
    enter the year 3
    2280
    2580
    2900

    ReplyDelete