Write a program that inputs principal amount, rate of interest and total time. It calculates the compound interest and displays it.

By: Prof. Dr. Fazal Rehman | Last updated: February 3, 2024

Write a program that inputs principal amount, rate of interest and total time. It calculates the compound interest and displays it.

Output

Enter the principal amount: 3
Enter the rate of interest (in percentage): 4
Enter the time period (in years): 5
Compound interest after 5 years: 0.649959

All Copyrights Reserved 2025 Reserved by T4Tutorials