मराठी

How many times will the following loop execute? Write the output of the code: int x=10; while(true) { System.out.println(x++*2); if(x%3==0) break; } - Computer Applications

Advertisements
Advertisements

प्रश्न

How many times will the following loop execute? Write the output of the code:

int x=10;
while(true) {
System.out.println(x++*2);
if(x%3==0)
break;
}
एका वाक्यात उत्तर

उत्तर

Loop is executed two times

20

22

shaalaa.com
Entry Controlled Loop
  या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?
2024-2025 (April) Specimen Paper
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×