Source Code:
#include<stdio.h>
#include<conio.h>
//A Program to calculate Simple Interest by Akshay...
void main()
{
clrscr();
float p,r,t,si;
printf("\n Principle = ");
scanf("%f",&p);
printf("\n Rate = ");
scanf("%f",&r);
printf("\n Time = ");
scanf("%f",&t);
si = (p*r*t)/100;
printf("\n Simple Interest is = %f",si);
getch();
}
//Done!!
After writing the source code save with extension .CPP
Output:
No comments :
Post a Comment