Printing odd numbers 1 to 10 (for loop)

PHOTO EMBED

Wed Jan 04 2023 16:44:27 GMT+0000 (Coordinated Universal Time)

Saved by @AlferM #c#

using System;

namespace ConsoleApp1
{
    internal class Program
    {
        public static void Main(string[] args)
        {
            //Printing odd numbers 1 to 10
            for (int i = 1; i < 10; i += 2)
            {
                Console.WriteLine(i);
            }
            Console.WriteLine("Printed Odd numbers 1 to 10");
        }
    }
}
content_copyCOPY