ExamVeda
Login
Home
Operators and Expressions in C Sharp
?

What will be the output of the following C# code?
static void Main(string[] args)
{
    int m = 10, n = 5, p = 20;
    bool b1 =  m * p / n <= p * n / m ;
    int l = p - 2 * m;
    bool b2 = l == 0;
    int z = Convert.ToInt32(b2);
    int k = Convert.ToInt32(b1);
    Console.WriteLine(k);
    Console.WriteLine(z);
}

Answer & Solution
Correct Answer: Option C
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.