Question: What does the following code output? Java int x=7; int y=10; if((x>5) && (y>12)) { System.out.println(A); } else if((x <7) || (y>10)) { System.out.println(B);
What does the following code output? Java int x=7; int y=10; if((x>5) && (y>12)) { System.out.println("A"); } else if((x 10)) { System.out.println("B"); } else if((x 2)) { System.out.println("C"); } else { System.out.println("D"); } Java/C# Code C# int x=7; int y=10; if((x>5) && (y>12)) { Console.WriteLine("A"); else if((x 10)) { Console.WriteLine("B"); else if((x 2)) { Console.WriteLine("C"); } else { Console.WriteLine("D");
Step by Step Solution
3.44 Rating (154 Votes )
There are 3 Steps involved in it
Lets analyze the code Java int x7 int y10 ifx5 y12 Systemout... View full answer
Get step-by-step solutions from verified subject matter experts
