Printing Odd numbers 1 to 10 (For loop with -Continue)

PHOTO EMBED

Thu Jan 05 2023 05:53:47 GMT+0000 (Coordinated Universal Time)

Saved by @AlferM #c#

using System;

namespace ConsoleApp1
{
    internal class Program
    {
        public static void Main(string[] args)
        {
            for (int i = 1; i <= 10; i++)
            {
                if (i % 2 == 0)     //If condition here is true execution won't go down. it goes to begining.
                    continue;
                Console.WriteLine(i);
            }
        }
    }
}
content_copyCOPY