Nguyễn Vân Anh
New member
What will be the output of the following C# code?
A. 4 3 2 1
B. 3 2 1
C.
D. 2 1
Code:
static void Main(string[] args)
{
int i = 5;
for (; Convert.ToBoolean(Convert.ToInt32(i)); Console.WriteLine(i--)) ;
Console.ReadLine();
}
B. 3 2 1
C.
Code:
5 4 3 2 1