Way 1 – Calculate Compound Interest
Enter the principal amount : 4000
Enter the time period : 2
Enter the rate of interest : 4
Compount Interest = 326.40000000000055
In this program, we will ask the user to input principal, rate and time. After that, use the compound interest formula.
Way 2 – Compound Interest using power function
Enter the principal amount : 4000
Enter the time period : 2
Enter the rate of interest : 4
Compount Interest = 326.40000000000055
This program is the same as the above program, the only difference is that here we were using the pow() function to find the power.
© Copyright 2024 www.logicalpython.com. All rights reserved.
We constantly review Tutorials, references, and examples to avoid errors, but we cannot warrant full correctness
of all content.