Quang Hiếu
New member
What will be the output of the following C# code?
A. 0.1
B.
C. 0.1 0.2 0.3 0.4 0.5
D. No output
Code:
static void Main(string[] args)
{
float s = 0.1f;
while (s <= 0.5f)
{
++s;
Console.WriteLine(s);
}
Console.ReadLine();
}
B.
Code:
1.1
D. No output