Advertisements
Advertisements
प्रश्न
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);
एका वाक्यात उत्तर
उत्तर
The for loop will run 0 times as the condition is false, and the loop is entry-controlled.
shaalaa.com
Types of Nested Loops
या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?