Home / MCQ Bank / Computer
Computer Operators And Expressions In C Sharp Difficulty: Medium

What will be the output of the following C# code? static void Main(string[] args) { int a = 8, b = 6, c = 10; int d = a * c * 2 / Convert.ToInt32(Math.Pow ((c - b), 2)); if (d == (c = Convert.ToInt32(Math.Sqrt (a * a + b * b))) && c == 10) { Console.WriteLine("figure is hypotenuse"); } else { Console.WriteLine("figure is square"); } }

Select the correct option to test your answer:

More Computer Questions

What is co-ordinate compression? Which of the following key is used to move the pointer from one pane to next pane? Choose the CSS property which specifies the placement of a table caption. Which of the following is not possible regarding the structure variable? What is the purpose of the 'switch' statement in C?