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
क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
