From ededa8980aad0461caff679c88eddc93a74f6015 Mon Sep 17 00:00:00 2001 From: Harshith D <125671905+harshithhdasari@users.noreply.github.com> Date: Fri, 17 Feb 2023 21:48:04 +0530 Subject: [PATCH] update simple_interest.py divided the logic by 100 --- simple_interest.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/simple_interest.py b/simple_interest.py index 88d4325..ff86fa5 100644 --- a/simple_interest.py +++ b/simple_interest.py @@ -3,6 +3,6 @@ time = float(input("Enter the number of years for the investment: ")) # Simple Interest Calculation -interest = (principal * rate * time) +interest = (principal * rate * time)/100 print("The simple interest for an investment of", principal, "at", rate, "% for", time, "years is:", interest)