#include<iostream>
using namespace std;
int main()
{
float P,R,N,I;
cout<<"Enter Principle Amount: ";
cin>>P;
cout<<"Enter Rate of Interest: ";
cin>>R;
cout<<"Enter No. of Years: ";
cin>>N;
I=(P*R*N)/100;
cout<<"Simple interest is : "<< I;
return 0;
}
Output of Program
Enter Principle Amount: 1000
Enter Rate of Interest: 12
Enter No. of Years: 2
Simple interest is : 240
using namespace std;
int main()
{
float P,R,N,I;
cout<<"Enter Principle Amount: ";
cin>>P;
cout<<"Enter Rate of Interest: ";
cin>>R;
cout<<"Enter No. of Years: ";
cin>>N;
I=(P*R*N)/100;
cout<<"Simple interest is : "<< I;
return 0;
}
Output of Program
Enter Principle Amount: 1000
Enter Rate of Interest: 12
Enter No. of Years: 2
Simple interest is : 240
have a look at my code:Program to calculate the simple interest:
ReplyDeletehttps://chetnet.blogspot.in/2017/08/c-programs.html
by function method plzzz
ReplyDeleteFlow chart sir
ReplyDeleteI am not getting your question. Pl. describe what is your question.
Delete