Login and Register ×
Check your Email for the OTP
ICSE Computer Application - Class - X ICSE Computer Application - Class X - Selection Examination - 2024-25 - MCQ - CALCUTTA PUBLIC SCHOOL
⚠ Report ✓ Question Verified Copy Link
for (i = 5; i >= 1; i--) { if (i % 2 == 1) continue; System.out.println(i + " "); }
Explanation:
The loop starts at i = 5 and decrements by 1 each time.
The if (i % 2 == 1) condition checks if i is odd. If true, it skips the current iteration using continue.
Only even numbers (4 and 2) are printed.
Related Topic:
Share Above MCQ
Learn More MCQ Questions from ICSE Computer Application - Class - X ICSE Computer Application - Class X - Selection Examination - 2024-25 - MCQ - CALCUTTA PUBLIC SCHOOL