Output/Store calculation to Variable question

I am having issues with storing a number. I want it to perform the calculation with the variables stored earlier in the program and save that to totalAdjustments. I tried using cin but that makes it wait for user input.

How do I store the result of the subtraction problem to my totalAdjustments variable?

1
2
    cout << " Adjusted Income: " << totalIncome - adjustIncome << endl;
   
totalAdjustments = totalIncome - adjustIncome;
Topic archived. No new replies allowed.