Sunday, June 25, 2017

Simple Interest using C++ Program.

C++ program to find simple interest based on given P, R, N and I.

#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:

Enter Principle Amount: 1000
Enter Rate of Interest: 12
Enter No. of Years: 2
Simple interest is : 240

4 comments:

  1. have a look at my code:Program to calculate the simple interest:
    https://chetnet.blogspot.in/2017/08/c-programs.html

    ReplyDelete
  2. Replies
    1. I am not getting your question. Pl. describe what is your question.

      Delete