# Simon Mclain 2018-03-17
# Problems: Python Fundamentals
# Write a function compoundinterest that, for a loan with compound interest, takes
# a principal amount, an interest rate, and a number of periods, and returns the total
# amount repaid.

Capital = int(input("Please enter the loan amount: "))
Capital = float(Capital)

Interest = int(input("Please enter the interest rate: "))
Interest = float(Interest)/ 100

Period = int(input("Please enter the term of the loan: "))
Period = float(Period)

def Total_amount_paid:
  for i in Period:
    return i * Captial 
    
print("The total amount is: €", Total_amount_paid)
