It may be clever but, no doubt like yourself, unless it was an absolute requirement of the homework I still wouldn't do it with a switch statement. It's more work than using if-else statements and it doesn't read as well.Quote:
so is it too clever to be the expected answer?
