A calculator that calculates simple interest given principal, annual rate of interest and time period in years.
Input:
- p, principal amount
- t, time period in years
- r, annual rate of interest
Output
- simple interest = ptr
Sample code to calculate simple interest following best practices
ShellApache-2.0
A calculator that calculates simple interest given principal, annual rate of interest and time period in years.
Input:
Output