For readability, I encapsulated the logic in descriptively-named functions. If, say, your answers are things of a certain color, and the answers 1, 8 and 10 are green things, then you can write this logic as
bool ChoiceIsGreen(int answer) { return (answer == 1 || answer == 8 || answer == 10); }
Then your function will become
if (ChoiceIsGreen(Answer)) {
If you have many options like this, I can see that it becomes difficult to read if you have a lot of raw numbers everywhere.
source share