Answer to Question #263547 in C++ for DANISH

Question #263547

What is the output of the following C11 code? (2, 5, 6)


int x = 15;


int y = 3;


if (x + y > 17 || y - x < 20)


{


y = x - y;


x = y + x;


cout << x << " " << y << " " << x + y << " " << y - x << endl;


}


else


{


x = y - x + y %5;


cout << x << " " << y << " " << x - y << " " << x + y << endl;


}


1
Expert's answer
2021-11-09T12:16:36-0500

The answer to your question is provided in the image:

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS