Computer Science, asked by sanjanatiwary06, 8 months ago

Write a program in c++ using argument to calculate the simple interest to be paid to a customer based on the fact that, if the customer is a senior citizen he will be given a rate of interest of 10% or else he will be given a rate of interest of 8% on a principal amount of Rs.10000 for 1 year

Answers

Answered by ruchitajain2405
0

Explanation:

include<iostream>

using namespace std;

int main()

{

int p,r,t,i;

cout<<"Enter Principle : ";

cin>>p;

cout<<"Enter Rate : ";

cin>>r;

cout<<"Enter Time : ";

cin>>t;

i=(p*r*t)/100;

cout<<"Simple interest is : "<<i;

return 0;

}

Similar questions