This is my code, if my previous post was unclear.
// Financial calculator
using namespace std;
long Interest, Principal, Time;
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;
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?