Nguyễn Đức Thành
New member
What will be the output of the following C# code?
A. Output of code is 5 10
B. Output is 5 5 5 5
C. Print 5 infinite times
D. None of the mentioned
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();
}
B. Output is 5 5 5 5
C. Print 5 infinite times
D. None of the mentioned