Computer Science, asked by akashkumar197, 10 months ago

Find the output of the following (JAVA PROGRAMMING)


int x=1, y=1;
if (n>0)
{
x=x+1;
y=y+1;
}

What will be the value of x and y, if n assumes a value (i) 1 (ii)0?

Please find the output of the following Java programing step vise......... ​

Answers

Answered by akathwal004
3

hope this answer will be helpful

Attachments:
Answered by akshayamca14
0

Answer:

Syntax error

Explanation:

N in not declared

Similar questions