Computer Science, asked by ayush943020, 6 months ago

What will be the value of a and b, when n assumes the following values in the given code

snippet?

i) 0

ii) 2

int a=5,b=5;

if(n>0)

{

a=a+1;

b=b+1

}

else

{

a=a-1;

b=b-1;​

Attachments:

Answers

Answered by Anonymous
5

Answer:

can we be friends if can then thanks my 20 ♥️ answer

Similar questions