Hey Mate!
Here’s the solution for your question:
In the first turn, m = 5, which is lesser than 20. So, the condition returns true and hence the loop is executed.
In the 1st iteration of the loop, the if condition returns false, since m % 3, i.e. 5 % 3 ≠ 0. Hence, the false block statements are executed. In the false block, the if condition returns true since 5 % 5 is equal to 0. So, m i.e. 5 is displayed and the loop is continued.
In the second turn, m is still <20, so the 2nd iteration takes place.
In the 2nd iteration, the if condition returns true, since 6 % 3 = 0. So the true block statement gets executed. In the true block, the break statement terminates the loop and hence the control moves out from the loop without further execution.
So, the answers to the questions are as follows:
i ) 5
ii ) 2 times
Hope it Helps!