What will be the output of the following C# code? [code] static void Main(string[] args) { int i = 1, j = 1; while (++i

Vy Bùi

New member
What will be the output of the following C# code?
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
 

Tìm kiếm

Back
Top