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:
![](https://hi-static.z-dn.net/files/d00/fb9085f2c17590ed7b3f2015c35aa63e.jpg)
Answers
Answered by
5
Answer:
can we be friends if can then thanks my 20 ♥️ answer
Similar questions
Math,
3 months ago
Science,
3 months ago
Computer Science,
3 months ago
Math,
8 months ago
Accountancy,
8 months ago
English,
1 year ago