This is my code, if my previous post was unclear.
// Financial calculator
#include <iostream>
using namespace std;
int main()
{
long Interest, Principal, Time;
float Rate;
cout << "What was the principal payment?" << endl;
cin >> Principal;
cout << "What's the interest rate?" << endl;
cin >> Rate;
cout << "How many years?" << endl;
cin >> Time;
Interest = Principal * Rate * Time;
cout << "The amount of interest you'll have earned will be $"<< Interest << endl << endl;
system("PAUSE");
return 0;
}
For a test input I enter the Principal as $4500, the Rate as 9.5%, and the Time at 6 yrs. The outcome is $256500. Is there a way for me to change the output from $256500 to $2565.00?