हिंदी

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
  क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
अध्याय 1.09: Iterative Constructs in Java - EXERCISES [पृष्ठ १२३]

APPEARS IN

अविचल Computer Applications [English] Class 10 ICSE
अध्याय 1.09 Iterative Constructs in Java
EXERCISES | Q III. 6. | पृष्ठ १२३
Advertisements
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×