हिंदी

Give an example to illustrate null loop. - Computer Applications

Advertisements
Advertisements

प्रश्न

Give an example to illustrate null loop. 

संक्षेप में उत्तर

उत्तर

The example of null loop by using for statement is as shown below:

for(j = 1; j <= 10; j++) 
{} 

There is no statement enclosed under curly braces. Hence, the loop simply repeats 10 times.

shaalaa.com
  क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
अध्याय 1.09: Iterative Constructs in Java - Review Insight [पृष्ठ १२०]

APPEARS IN

अविचल Computer Applications [English] Class 10 ICSE
अध्याय 1.09 Iterative Constructs in Java
Review Insight | Q 4. | पृष्ठ १२०
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×