ExamVeda
Login
Home
91
What will be the output of the following C# code?
static void Main(string[] args)
{
    int i, s = 0;
    for (i = 1; i <= 10; s = s + i, i++);
    {
        Console.WriteLine(s);
    }
    Console.ReadLine();
}
Discuss
Answer & Solution
Answer: Option D
No explanation is given for this question. Let's Discuss on Board
92
What will be the output of the following C# code?
static void Main(string[] args)
{
    float f;
    for (f = 0.1f; f <= 0.5; f += 1)
    Console.WriteLine( ++f );
    Console.ReadLine();
}
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board