Given the code segment below, indicate the output for the following initial
values of y:
int x ¼ 50;
if(y > 10)
x ¼ 30;
if(y
x ¼ 40;
System.out.println(x);
*A. What is the output if the integer variable y contains 10?
B. What is the output if the integer variable y contains 15?
C. What is the output if the integer variable y contains 30?
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here