principle=float(input("Enter the principle amount: "))
rate=float(input("Enter the interest rate with percentage: "))
year=int(input("Enter number of years: "))
interest=principle*rate*year/100
total_amount=principle+interest
print(f"with the principle of ${principle:.2f} and rate of {rate}% in {year} years, the interest will be ${interest:.2f} and total is ${total_amount}")