diff --git a/README.md b/README.md index b103466139..212dfba82f 100644 --- a/README.md +++ b/README.md @@ -2,15 +2,19 @@ ## Simple Interest Calculator -A calculator that calculates simple interest given principal, annual rate of interest and time period in years. +A calculator that calculates simple interest given the principal amount, annual rate of interest, and time period. -``` -Input: - p, principal amount - t, time period in years - r, annual rate of interest -Output - simple interest = p*t*r -``` +### Input: +- `p`: Principal amount +- `t`: Time period in years +- `r`: Annual rate of interest + +### Output: +- `simple interest = p * t * r` + +### Example: +If `p = 1000`, `t = 2 years`, and `r = 5%`, +- `simple interest = 1000 * 2 * 0.05 = 100` + +This project is licensed under the Apache License 2.0. -_© 2022 XYZ, Inc._