Ok, so I'm writing a tax program and this is just the first part I'm having trouble getting the right deductions. I think it has something to do with the nested if statements. basically the problem is that every time I check status values they all run as 1 no matter what. I don't really understand what the problem is and I appreciate any help. thanks in advanced.
You should increase the verbosity of your compiler. Then it might warn about "assignment within conditional".
In other words: '=' is an assignment operator, and '==' compares for equality. Your line 18 first sets the value of 'status' to be 1 and then considers whether the return value from assignment (i.e. 1) is true or false. Non-zero values convert to true.
One useful style habit is to put constant expressions to the left side of equality comparison. 7=status is clearly an error, 7==status is not.
I'm a beginner myself so forgive me if I'm wrong but I think the 'if' statements are using the assignment operator rather than the equality operator, meaning that you are ASSIGNING the value of 1 to the status variable instead of checking to see if it is equal to 1. So instead of "if(status=1)", I think it should be "if(status==1)".