ExamVeda
Login
Home
Basic Syntax and Data Types in C Sharp
?

What will be the output of the following C# code?
static void Main(string[] args)
{
    const int a = 5;
    const int b = 6;
    for (int i = 1; i <= 5; i++)
    {
        a = a * i;
        b = b * i;
    }
    Console.WriteLine(a);
    Console.WriteLine(b);
    Console.ReadLine();
}

Answer & Solution
Correct Answer: Option B
Let's discuss the solution. Join the discussion
Examveda
Question posted by Examveda
Community

Join the Discussion

No comments yet Be the first to discuss this question.