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
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
Computer Science,
7 days ago
Math,
7 days ago
Math,
8 months ago
English,
8 months ago
Math,
8 months ago