Formula to calculate Simple Interest.
SI = (P * R * T) / 100
- SI is the Simple Interest.
- P is the Principal Amount (initial amount invested or borrowed).
- R is the Rate of Interest per period (usually expressed as a percentage).
- T is the Time Duration in years.
Example: P = 5000 R = 6 T = 3 Explanation: SI = (P * R * T) / 100 = (5000 * 6 * 3) / 100 = (90,000) / 100 = 900
Step-by-step Algorithm.
C code to find Simple Interest.
//C program to find simple interest #include <stdio.h> int main() { float principal, rate, time, simpleInterest; printf("Enter the principal amount: "); scanf("%f", &principal); printf("Enter the rate of interest per period: "); scanf("%f", &rate); printf("Enter the time duration in years: "); scanf("%f", &time); // Calculate the simple interest simpleInterest = (principal * rate * time) / 100; printf("Simple Interest: %.2f\n", simpleInterest); return 0; }
Enter the principal amount: 6000
Enter the rate of interest per period: 5
Enter the time duration in years: 6
Simple Interest: 1800.00





