Computer Science, asked by hypersonic1234321, 7 days ago

Give the output
int x=2, y=2;
if(n>0)
{
x=x+1;
y=y+1;
}
System.out.println(x+y);​

Answers

Answered by ZoohaaShahbaz
0

4

Explanation:

x=2

y=2

if n is greater than 0

means x and y are Positive number than

x+y

2+2=4

Similar questions