Nguyễn Hồng Nhung
New member
What will be the output of the following C# code?
A. 0.05f
B.
50f
C.
D.
50f
Code:
static void Main(string[] args)
{
float i = 1.0f, j = 0.05f;
while (i < 2.0f && j <= 2.0f)
{
Console.WriteLine(i++ - ++j);
}
Console.ReadLine();
}
B.
Code:
1.
C.
Code:
-0.04999995f
Code:
1.