Computer Science, asked by tathagatanaskar5, 7 months ago

Mr. Agarwal invests certain sum at 5% per annum compound interest for three
years. Write a program in Java to calculate and display:
(a) the interest for the first year
(b) the interest for the second year
(c) the interest for the third year
Take sum as an input from the user.
Sample Input: Principal = 5000
Sample Output: Interest for the first year: 500
Interest for the second year: 550
Interest for the third year: 605​

Answers

Answered by maliana36
1

Answer:

Hope this answer will be helpful for you

Attachments:
Similar questions