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

7th Dec 2016, 12:14 PM
Hamza Asif
Hamza Asif - avatar
2 Answers
+ 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; }
7th Dec 2016, 10:17 PM
JENN
JENN - avatar
0
thanks buddy.
26th Feb 2017, 1:15 PM
Hamza Asif
Hamza Asif - avatar