Vidyalelo
C# Programming · Q85

Miscellaneous in C Sharp

Programming · C# Programming · question 85

Q85

What will be the output of the following C# code snippet? class Program static void Main(string[] args) double x = 3.14; int y = (int) Math.Ceiling(x); Console.WriteLine(y);

A.
0
B.
3
C.
3.0
D.
4
Answer

Answer: Option D

Solution

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