C To Find Simple Interest When Principle Amount ,Rate Of Interest And Time Is Given
/*To Find Simple Interest When Principle Amount ,Rate Of Interest And Time Is Given*/
#include<stdio.h>
int main()
{
float principal,rate,time,si;
printf("Enter The Principal amount In Rs.:--");
scanf("%f",&principal);
printf("Enter The Rate Of Interest :--");
scanf("%f",&rate);
printf("Enter The Time In Years.:--");
scanf("%f",&time);
si=(principal*rate*time)/100;
printf("Simple Interest For Above Data :--Rs.%f",si);
return 0;
}
/*To Find Simple Interest When Principle Amount ,Rate Of Interest And Time Is Given*/
#include<stdio.h>
int main()
{
float principal,rate,time,si;
printf("Enter The Principal amount In Rs.:--");
scanf("%f",&principal);
printf("Enter The Rate Of Interest :--");
scanf("%f",&rate);
printf("Enter The Time In Years.:--");
scanf("%f",&time);
si=(principal*rate*time)/100;
printf("Simple Interest For Above Data :--Rs.%f",si);
return 0;
}
0 Comments