➽ Program:-
#include<stdio.h>
int main()
{
float
principal_amount, rate, time, simple_interest;
printf("Enter
Principal Amount: ");
scanf("%f", &principal_amount);
printf("Enter
time(in years): ");
scanf("%f", &time);
printf("Enter
rate: ");
scanf("%f", &rate);
simple_interest =
(principal_amount * time * rate) / 100;
printf("Simple
Interest = %f", simple_interest);
return 0;
}
➽ Output:-
Enter Principal Amount: 1700
Enter time(in years): 3
Enter rate: 6.7
Simple Interest = 341.700012
0 Comments
Please do not enter any spam link in the comment section.