Computer Science, asked by kshitij3010, 5 days ago

Write a program that calculates the compund intrest when a user is promted to enter the principle amount the duration in years and the total amount issued

Answers

Answered by dheepikarameshkumar
1

Answer:

Explanation:

Write a program to input Principal (p), Rate (r) and Time (t). Calculate and display the amount, which is compounded annually for each year by using the formula:

Simple Interest:

(si) = (prt) / 100

p = p + si

[Hint: The amount after each year is the Principal for the next year]

Similar questions