0
display interest amount and total amount!
Write a program to accept principal amount rate of interest and duration from the user.display interest amount and total amount
2 ответов
+ 1
//JENN SAYS HI.
#include <iostream>
using namespace std;
int main()
{
float Principal;
float Rate_of_interest;
float time;
float Simple_interest = ((Principal * Rate_of_interest * time)/100)
cout << "input Principal\n";
cin >> Principal;
cout << "input Rate_of_interest\n";
cin >> Rate_of_interest;
cout << "input time\n";
cin >> time;
cout << "The Simple interest is: ";
cout << Simple_interest;
cout << "Total amount is: ";
cout << Simple_interest + Principal;
return 0;
}
0
thanks buddy.