exercise2 - determine if number is odd or even. learned with try blocks and exception handling