You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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}")