Examveda

What will be the output of the following C# code snippet?
class Program
{
    static void Main(string[] args)
    {
        double x = 4.772;
        double y = 4.76;
        double z = Math.Max(x, y);
        Console.WriteLine(z);
        Console.ReadLine();
    }
}

A. true

B. false

C. 4.772

D. 4.76

Answer: Option C


This Question Belongs to C Sharp Programming >> Miscellaneous In C Sharp

Join The Discussion

Related Questions on Miscellaneous in C Sharp