quite newbish program not working
someone please help, ive only been programming for a few days and saw something similar in a tutorial i read and thought id try it but it wont out put anything
Code:
#include <iostream>
using namespace std;
int main()
{
int monthlyexpenses = 300 + 200 + 75;
int monthlyincome = 1000;
float monthlyinterest = .02;
float total = 0;
float x = total;
float interestearned = 0;
for (x = 1; x <= 12;)
interestearned = monthlyincome * monthlyinterest;
total = total + interestearned + monthlyincome - monthlyexpenses; {
cout<< total <<endl;
}
}