Skip to main content

C++: Write a Program to Find the S.I given Principal = 100 , take rate and time from the User

Write a Program to find the S.I given Principal = 100 , take rate and time from the User



#include<iostream>

using namespace std;
int main()
{
    int principle = 100;
    int rate, time, intrest;

    cout << "Enter rate= ";
    cin>>rate;
    cout<<"Enter time= ";
    cin>>time;
    intrest=(principle*time*rate)/100;
    cout <<"The intrest rate is = "<<intrest<<endl;

}