Give the output of the following program segment and also mention how many times the loop is executed : int i; for (i = 5; i > 10; i++) System.out.println(i); System.out.println(i * 4);
Advertisements
प्रश्न
Give the output of the following program segment and also mention how many times the loop is executed :
int i;
for (i = 5; i > 10; i++)
System.out.println(i);
System.out.println(i * 4);एका वाक्यात उत्तर
Advertisements
उत्तर
20. Loop will be executed for 0 times.
shaalaa.com
Introduction of Nested Loop
या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?
