// Write a program to find simple interest.
#include<iostream.h>
#include<conio.h>
int main()
{
clrscr();
int p,t;
float r,si;
cout<<"Enter Principle : ";
cin>>p;
cout<<"Enter Rate : ";
cin>>r;
cout<<"Enter Time : ";
cin>>t;
si=(p*r*t)/100;
cout<<"Simple interest is : "<<si;
getch();
return (0);
}
OutPut:-
#include<iostream.h>
#include<conio.h>
int main()
{
clrscr();
int p,t;
float r,si;
cout<<"Enter Principle : ";
cin>>p;
cout<<"Enter Rate : ";
cin>>r;
cout<<"Enter Time : ";
cin>>t;
si=(p*r*t)/100;
cout<<"Simple interest is : "<<si;
getch();
return (0);
}
OutPut:-
No comments:
Post a Comment