Vidyalelo
C# Programming · Q44

Operators and Expressions in C Sharp

Programming · C# Programming · question 44

Q44

What will be the output of the following C# code? static void Main(string[] args) int a = 4; int b = 5; int c = 6; int d = 8; if (((a * b / c) + d) >= ((b * c + d ) / a)) Console.WriteLine("Line 1 - a is greater to b"); Console.WriteLine((a * b / c) + d); else Console.WriteLine("Line 1 - a is not greater to b"); Console.WriteLine((b * c + d )/ a);

A.
"Line 1 - a is greater to b"
11
Answer
B.
"Line 1 - a is not greater to b"
9
C.
Both are equal
D.
None of the mentioned

Answer: Option A

Solution

Answer: Option A
No explanation is given for this question Let's Discuss on Board