Vidyalelo
C# Programming · Q87

Classes and Objects in C Sharp

Programming · C# Programming · question 87

Q87

What will be the output of the following C# code? static void Main(string[] args) int X = 6,Y = 2; X *= X / Y; Console.WriteLine(X); Console.ReadLine();

A.
12
B.
6
C.
18
Answer
D.
Compile time error

Answer: Option C

Solution

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