Simple Interest Calculator in C
Simple Interest Calculator in C
Introduction
Calculating simple interest is a common financial computation. This program takes principal, rate, and time as inputs to compute interest.
Program
Explanation
-
(principal * rate * time) / 100
: Formula to calculate simple interest. -
%.2f
: Formats the output to two decimal places.
Comments
Post a Comment