C++ Program To calculate the compound interest using CI = P(1+R/100)^T  P
Posted Date:
Total Responses: 0
Posted By: K Dinesh Reddy Member Level: Gold Points/Cash: 5

// To calculate the compound interest using CI = P(1+R/100)^T  P #include using namespace std; int main() { float CI, P, r, x; int t; cout <<"Enter the principal: "; cin >> P; cout << "\n Enter rate: "; cin >> r; cout << "\n Enter time: "; cin >> t; x = P*pow((1.+r/100.), t); CI = x  P; cout << "\n The Compound Interest is: " << CI << endl; system ("pause"); return 0; }
Note: In the program, After #include "" tag is there... But it is not seen as the post is considered as a HTML post... So please don't forget this point... The original file is uploaded as attachment... Check that also...
With Regards, ZORO IIT Madras  CSE
AttachmentsC++ Program : To calculate the compound interest using CI = P(1+R/100)^T  P (2080318272.txt)

Project Feedbacks

Author: Prem Prakash Gupta  Member Level: Bronze  Revenue Score: 
I've corrected some small mistakes:
// To calculate the compound interest using CI = P(1+R/100)^T  P #include<iostream> #include<cmath> using namespace std; int main() { double CI, P, r, x; int t; cout <<"Enter the principal: "; cin >> P; cout << "\n Enter rate: "; cin >> r; cout << "\n Enter time: "; cin >> t; x = P*pow((1.0+r/100.0), t); CI = x  P; cout << "\n The Compound Interest is: " << CI << endl; system ("pause"); return 0; }

Author: Sajil Naryanan  Member Level: Bronze  Revenue Score: 
Yea it a very nice one.. Keep it up


Post Feedback 

You must Sign In to post a feedback.


