| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -0,0 +1,12 @@ | |||
| 1 | + # Python3 program to find compound | ||
| 2 | + # interest for given values. | ||
| 3 | + | ||
| 4 | + def compound_interest(principle, rate, time): | ||
| 5 | + | ||
| 6 | + # Calculates compound interest | ||
| 7 | + Amount = principle * (pow((1 + rate / 100), time)) | ||
| 8 | + CI = Amount - principle | ||
| 9 | + print("Compound interest is", CI) | ||
| 10 | + | ||
| 11 | + # Driver Code | ||
| 12 | + compound_interest(10000, 10.25, 5) | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments