C Program for Simple Interest-
file:- si.c
#include<stdio.h>
#include<conio.h>
int main(){
float p,r,t,si;
clrscr();
printf("Enter Principal,Rate and Time\n");
scanf("%f%f%f",&p,&r,&t);
si=p*r*t/100;
printf("Simple Interest=%f",si);
getch();
return 1;
}
Simple Interest = (Principle x Rate x Time) / 100
ReplyDeleteHere is another C program to calculate simple interest