In C #, for example, you can βcontinueβ to skip the iteration. The example of skipping numbers with mod 3 is 0, so the numbers 3, 9, 12, 15 ... will be skipped.
static void Main(string[] args) { for (int i = 1; i <= 50; i++) { if (i%3 == 0) { continue; } Console.WriteLine("{0}", i); } Console.ReadLine(); }
source share