Examveda

What will be the output of the following C# code?
static void Main(string[] args)
{
    float a = 16.4f;
    int b = 12;
    float c;
    c =  a * ( b + a) / (a - b) ;
    Console.WriteLine("result is :" +c);
    Console.ReadLine();
}

A. 106

B. 104.789

C. 105.8546

D. 103.45

Answer: Option C


Join The Discussion

Related Questions on Operators and Expressions in C Sharp