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"); } } }
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter