From f274afd132c7564173c47df98044071dd87ae335 Mon Sep 17 00:00:00 2001 From: Rishith Reddy Date: Sat, 25 Jan 2025 21:58:46 +0530 Subject: [PATCH 1/3] Fix incomplete sentence and improve formatting in README.md --- README.md | 24 ++++++++++++++---------- 1 file changed, 14 insertions(+), 10 deletions(-) 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._ From bbbedc14c2ade5ae8640b6cd22689d74c4bb2249 Mon Sep 17 00:00:00 2001 From: Rishith Reddy Date: Sat, 25 Jan 2025 22:53:20 +0530 Subject: [PATCH 2/3] Updated README with additional information --- README.md | 23 ++++++++++------------- 1 file changed, 10 insertions(+), 13 deletions(-) diff --git a/README.md b/README.md index 212dfba82f..cf3587244c 100644 --- a/README.md +++ b/README.md @@ -2,19 +2,16 @@ ## Simple Interest Calculator -A calculator that calculates simple interest given the principal amount, annual rate of interest, and time period. +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 +``` +Input: + p, principal amount + t, time period in years + r, annual rate of interest +Output + simple interest = p*t*r +``` -### 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. +_© 2025 XYZ, Inc._ From ff7789bf97d0b8a502960d3a04d864f36c47d277 Mon Sep 17 00:00:00 2001 From: Rishith Reddy Date: Sat, 25 Jan 2025 22:59:00 +0530 Subject: [PATCH 3/3] Revert "Updated README with additional information" This reverts commit bbbedc14c2ade5ae8640b6cd22689d74c4bb2249. --- README.md | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index cf3587244c..212dfba82f 100644 --- a/README.md +++ b/README.md @@ -2,16 +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 -_© 2025 XYZ, Inc._ +### 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.