What does the following code output? int x = 7, y = 10; X -= 32; y *= 4; cout « "y = " « y « " and x = " « x « "; " « endl; %3D x += 32; y /= 3; x *= 3; y -= 4; cout << "x = " << x << %3D and y = " << y « ";" <« endl;

Microsoft Visual C#
7th Edition
ISBN:9781337102100
Author:Joyce, Farrell.
Publisher:Joyce, Farrell.
Chapter5: Looping
Section: Chapter Questions
Problem 19RQ
icon
Related questions
Question
What does the following code output?
int
х%3D 7, у 3D 10;
X -= 32;
y *= 4;
cout « "y = " « y « " and x = " « x « "; " « endl;
x += 32;
у /- 3;
x *= 3;
y -= 4;
cout << "x = " « x « " and y = " << y « ";" <« endl;
Transcribed Image Text:What does the following code output? int х%3D 7, у 3D 10; X -= 32; y *= 4; cout « "y = " « y « " and x = " « x « "; " « endl; x += 32; у /- 3; x *= 3; y -= 4; cout << "x = " « x « " and y = " << y « ";" <« endl;
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Mathematical functions
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,