Question: Given the following code which statement ( s ) will execute? int x = 1 5 , y = 2 0 ; if ( x

Given the following codewhich statement(s)will execute?
int x =15, y =20;
if (x %2==0 &&y >0)
--statement 1--
else if (x %2==0||y >0)
--statement 2--
else
--statement 3--

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!