A calculator that calculates simple interest given principal, annual rate of interest, and time period in years.
p: principal amountt: time period in yearsr: annual rate of interest
- simple interest = p * t * r / 100
Run the script in a terminal:
bash simple-interest.shFollow the prompts to enter principal, rate, and time period.