?
What will be the output of the following C# code?
What will be the output of the following C# 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();
}
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();
}
Join the Discussion
Login to post a comment or share your explanation.
Login