I have some code and the user inputs the values for floating point variables a and b.
I want to write an if statement whereby; if 'a' and 'b' are zero, then some code will be executed. If not, then move on. I'm not sure how to do this. I have tried already but it doesn't work! The code only gets executed when a is zero and is only depenedent on a
can anyone please help
thanksCode:if(a == 0 && b == 0) { printf("\wrong!\n"); thank_you(); exit(1); }
Stuart