adplus-dvertising
frame-decoration

Question

Select the output for the following set of code:
static void Main(string[] args)
  {
      int i = 1, j = 1;
      while (++i <= 10)
      {
          j++;
      }
      Console.WriteLine(i+ "  " +j);
      Console.ReadLine();
  }

a.

12 11

b.

10 11

c.

11 10

d.

11 12

Posted under C# programming

Answer: (c).11 10

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. Select the output for the following set of code: