question 39\n1 pts\nhow many times will the following for loop be executed?\nfor (int count = 10; count <=…

question 39\n1 pts\nhow many times will the following for loop be executed?\nfor (int count = 10; count <= 21; count++) system.out.println(\java is great!\);\n0\n12\n10\n11
Answer
Explanation:
Step1: Identify start and end values
The loop starts with count = 10 and ends when count = 21.
Step2: Calculate number of iterations
The number of iterations is 21 - 10+ 1.
$21 - 10+1=12$
Answer:
12