C++ Program To Find Simple Interest When Principle Amount ,Rate Of Interest And Time Is Given

C++ Program To Find Simple Interest When Principle Amount ,Rate Of Interest And Time Is Given

//C++ Program To Find Simple Interest When Principle Amount ,Rate Of Interest And Time Is Given
#include<iostream>

 using namespace std;

int main()
{
    float principal,rate,time,si;
    cout<<"Enter The Principal amount In Rs.:--";
    cin>>principal;
    cout<<"Enter The Rate Of Interest :--";
    cin>>rate;
    cout<<"Enter The Time In Years.:--";
    cin>>time;
    si=(principal*rate*time)/100;
    cout<<"Simple Interest For Above Data :--Rs."<<si;
    return 0;
}

Post a Comment

0 Comments