Explain the difference between s = 0; if (x > 0) { s++; } if (y >

Question:

Explain the difference between


s = 0;
if (x > 0) { s++; }
if (y > 0) { s++; }
and
s = 0;
if (x > 0) { s++; }
else if (y > 0) { s++; }

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question
Question Posted: