โ† TCS questions

Print 1 to 20 Skipping 8 to 10 Using Break and Continue

Filed under TCS

Write a program that generates and returns a list of integers from 1 to 20 inclusive, skipping numbers 8, 9, and 10 by using conditional flow control statements (`continue`).

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related TCS questions

Collected from public candidate posts and coding forums. Updated Nov 2026.