Computer Science, asked by sharanya1018, 5 months ago

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 Vikas8271
2

Answer:

2

2

Explanation:

value of x=2 and value of y=2

Similar questions