Computer Science, asked by hs304675, 7 months ago

If x=4 and y=6 what is the value of x and y if n assume a value (i) 1 (ii) 0?

if(n>0)

{

x++;

--y

System.out.println(x+”and “+y); }​

Answers

Answered by imtiyazallam
0

Answer:

if n=1

output would be:

5and 5

if n = 0

there is no output as 0 is equal to 0

Similar questions