मराठी

State the type of loop in the given program segment for (int i = 5; i l = 0; i =2) System.out.println(i); - Computer Applications

Advertisements
Advertisements

प्रश्न

State the type of loop in the given program segment

for (int i = 5; i l = 0; i =2)

System.out.println(i);

पर्याय

  • finite

  • null

  • infinite

  • fixed

MCQ

उत्तर

infinite

Explanation:

The for loop will never terminate, as the values of 1 will be : 5, 3, 1, - 1 ... and will never reach 0.

shaalaa.com
Entry Controlled Loop
  या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?
2022-2023 (March) Official
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×