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;
}

1 comment: