Problem Statement 3

Write a program that accepts a deposit amount and calculates the amount of interest the deposit amount earns in a year. The bank pays a flat 4.0% per year for deposits of up to Rs.1000, a flat 4.5% per year for deposits of up to Rs.5000, and a flat 5.0% per year for deposits of more than Rs.5000.

SAMPLE INPUT

Enter initial deposit: 3000

SAMPLE OUTPUT

135

Sample Program:

Sample Output:

Enter initial deposit:
3000
135

Any queries leave a comment please and thanks for reading this post.

Leave a Reply

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