Examveda

What will be the output of the following C# code?
static void Main(string[] args)
{
     int a, b, c, x;
     a = 90;
     b = 15;
     c = 3;
     x = a - b / 3 + c * 2 - 1;
     Console.WriteLine(x);
     Console.ReadLine();
}

A. 92

B. 89

C. 90

D. 88

Answer: Option C


Join The Discussion

Related Questions on Operators and Expressions in C Sharp