What will be the output of the following C# code? [code] static void Main(string[] args) { int I, X; for (I = 1; I <= (9 %

What will be the output of the following C# code?
Code:
 static void Main(string[] args)
 {
     int I, X;
     for (I = 1; I <= (9 % 2 + I); I++)
     {
         X = (I * 3 + I * 2) / I;
         Console.WriteLine(X);
     }
     Console.ReadLine();
 }
A. Output of code is 5 10
B. Output is 5 5 5 5
C. Print 5 infinite times
D. None of the mentioned
 

Tìm kiếm

Back
Top