If ab is odd, then a and b are both odd. I'm not quite sure how to go about proving this. I think I need to assume ab is odd or maybe do a proof by contradicition?
The Captain gave the most straight forward and perfectly acceptable approach to the problem. as an alternative, you may want to use the contrapositive, then you only have to check 3 cases
Assume a and b are not both odd, then you have 3 cases:
(1) a is even but b is odd
(2) a is odd but b is even
(3) a and b are both even
in all cases, we have ab even, so the proof by contrapositive follows