Program isn't printing correctly

后端 未结 5 1285
醉酒成梦
醉酒成梦 2021-01-28 04:52

I believe my program is still going through the if statements after it is declared invalid. It should print invalid filling status or invalid exemption status on the same line w

5条回答
  •  囚心锁ツ
    2021-01-28 05:26

    You can't use commas inside numbers in C++. The comma is the comma operator.

    So instead of 7,000 write 7000.

    if(taxable_income>7,000)
    {
       x;
    }
    

    Would never execute x;

提交回复
热议问题