Program to find Simple Interest
#include<stdio.h>
#include<conio.h>
void main()
{
float p,r,t,si;
printf("Enter the value of Principle=");
scanf("%f",&p);
printf("Enter the value of Rate=");
scanf("%f",&r);
printf("Enter the value of Time (Year) =");
scanf("%f",&t);
si=p*r*t/100;
printf("Answer is=%f",si);
getch();
}
Output:-
0 comments:
Post a Comment