How many test cases are necessary to cover all the possible sequences of statements (paths) for the following program fragment?
if (condition 1)
then statement 1
else statement 2
fi
if statement 2
then statement 3
fi
The answer is supposed to be 3 but I don't know why? can someone draw a diagram or explain this? ISTQB Foundation Level Paper #3 no. 37.