Dr. A.P.J. Abdul Kalam Technical University (AKTU), Lucknow

Lab Exercise

2. Write a program that calculates the Simple Interest and Compound Interest. The Principal Amount, Rate of Interest, and Time are entered through the Keyboard.

Sample Input and Output

Stdin Inputs:

15000 13.50 5

Sample Result:

Input Principal Amount: 15000
Input Rate of Interest: 13.50
Input Time (Years): 5
Simple Interest: 10125.00
Compound Interest: 13253.39

Leave a Reply

Your email address will not be published. Required fields are marked *

Scroll to Top
Scroll to Top