What dont you understand exactly, you seem to know how the if statement works already, so what exactly is the problem?
I am not sure why you are using the test you are in the if statement, I would have thought that if either 'a' or 'b' was 0 you would want it to fail, unless you want to end up with something like 0/99, where a = 0 and b = 99.
What is the difference between:
"This means that b must not be zero, whereas a can have any
value except zero"
What this says to me is that neither value should be 0.
|