Explanatory Question
Give the output of the following program segment. How many times is the loop executed?
for(x=10; x>20; x++)
System.out.println(x);
System.out.println(x*2);
Read the answer carefully and go through the related questions on the right side to improve your understanding of this topic.