Algorithm for calculating simple and compound interest
Answers
Answered by
1
Answer:
For Compound Interest
Input principle amount. Store it in some variable say principle.
Input time in some variable say time.
Input rate in some variable say rate.
Calculate compound interest using formula,
Compound Interest = principle * (1 + rate / 100) time).
Finally, print the resultant value of CI.
For Simple Interest
Attachments:
Similar questions