C program to print odd numbers between 1 to 100 using for and if else

 



using System;

namespace ifelse

{

    internal class Program

    {

        static void Main(string[] args)

        {

            int i;

            for(i=1;i<100; i++)

            {

                if(i % 2 != 0)

                {

                    Console.WriteLine(i);

                }

            }

            Console.ReadLine();

        }

    }

}





Post a Comment

0 Comments
* Please Don't Spam Here. All the Comments are Reviewed by Admin.