int i;
int wage=1
cout << "You will be paid a wage of $2 on your first day and have your wage doubled every day after that." << endl;
for (int i = 2; i <= 20;i++)
{
wage = wage*i+2;
cout << "On day " << i <<" your wage will be: $ " <<wage<< endl;
}
The point is to double 2$ every day for 20 days, I think my format( though I think I do not need wage) is correct but the math seems to be off, would like a hint on how to fix it.