Start networking and exchanging professional insights

Register now or log in to join your professional community.

Follow

Select the output for the following set of code?

  static void Main(string[] args)

        {

            int i;

            int b =8, a =;

            for (i =0; i <=; i++)

            {

                if ((a / b *2) ==2)

                {

                    Console.WriteLine(i + " ");

                    continue;

                }

                else if (i !=4)

                    Console.Write(i + " ");

                else

                    break;

            }

            Console.ReadLine();

        }

a)b)c)d)4

 

user-image
Question added by Mohannad Bakbouk , Full Stack Web Developer , Almohtaseb
Date Posted: 2016/10/19

here a =4 then output is: 0123

jazeem azeez
by jazeem azeez , Software Developer , Good Methods Global

compilation error above program have syntax error * won't run

More Questions Like This