// formatted output with cout and manipulators
#include <iostream.h>
#include <iomanip.h>
int main()

{

float principal;
float payment = 2000;
float rate;
int month = 0;
float remainder = (principal*rate)-payment;


cout << "Enter your principal: $";
cin >> principal;
cout << "Enter your rate: ";
cin >> rate;
cout << endl;
cout << "----------------------------------";
cout << endl;
cout << endl;

cout << setw(12) << "\nMonth" << setw(11) << "\nPayment" << setw(12) <<"\nRemainder\n";
cin >> remainder;
cout << setiosflags(ios::left)
<< setw(12) << ++month
<< setw(12) << payment
<< setw(12) << remainder;

cout << "\n\n";
return 0;
}


It says that my two local variable are not being initlaized.

Can soembody take a look at it and see what is wrong

Whiel you are looking at it
A user can enter any principal or payemtn or rate
but the mothns increase by one and the payment stays the same but the remainder changes

Alsothis program is suppose to output one line at a time and the next tiem the user presses any key it goes to the next line until it has completed the cxycle of 35 months.

Can anybody help me fix my mistakes!