C Program Calculate Simple Interest :
//C Program Calculate Simple Interest
#include<stdio.h>
#include<conio.h>
void main()
{
float p,r,t,SI;
clrscr();
printf("Enter Principal:- ");
scanf("%f",&p);
printf("Enter Rate:- ");
scanf("%f",&r);
printf("Enter Time:- ");
scanf("%f",&t);
SI=(p*r*t)/100;
printf("SI=%f\t",SI);
getch();
}
OUTPUT#include<stdio.h>
#include<conio.h>
void main()
{
float p,r,t,SI;
clrscr();
printf("Enter Principal:- ");
scanf("%f",&p);
printf("Enter Rate:- ");
scanf("%f",&r);
printf("Enter Time:- ");
scanf("%f",&t);
SI=(p*r*t)/100;
printf("SI=%f\t",SI);
getch();
}
No comments:
Post a Comment