मराठी

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×