To execute a loop 10 times, which of the following is correct?
Advertisements
Question
To execute a loop 10 times, which of the following is correct?
Options
for (int i=11;i<=30;i+=2)for (int i=11;i<=30;i+=3)for (int i=11;i<20;i++)for (int i=11;i<=21;i++)
MCQ
Advertisements
Solution
for (int i=11;i<=30;i+=2)shaalaa.com
Entry Controlled Loop
Is there an error in this question or solution?
