Predict the output of the given code snippet. Int x = 1, y = 1, n=1, If (n > 0) X ={ x+1 y=y+1; } System.output.println (x); System.output.println (y):
please help me with this
Answers
Answered by
2
Answer:
2
2
Explanation:
value of x=2 and value of y=2
Similar questions
Math,
3 months ago
Political Science,
3 months ago
Biology,
6 months ago
Math,
1 year ago
English,
1 year ago