Computer Science, asked by Namanpant, 4 months ago

Write the output for the following: [2]

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 ?​

Answers

Answered by XXxbigdahuadandaxXX
4

Answer:

int x = 1, y = 1;

if (n > 0)

{

x = x + 1;

y = y + 1;

}

Similar questions