logo CodeStepByStep logo

expressionsNumbers2

Language/Type: C++ expressions %

Trace the evaluation of the following expressions, and give their resulting values. Make sure to give a value of the appropriate type (such as including a .0 at the end of a double).

3 * 4 + 2 * 3
2 + 19 % 5 - (11 * (5 / 2))
2 + 2.0
26 % 10 % 4 * 3
813 % 100 / 3 + 2.4
4 * 3 / 8 + 2.5 * 2
(5 * 7.0 / 2 - 2.5) / 5 * 2
41 % 7 * 3 / 5 + 5 / 2 * 2.5
89 % 10 / 4 * 2.0 / 5 + (1.5 + 1.0 / 2) * 2

You must log in before you can solve this problem.

Log In

Need help?

If you do not understand how to solve an exercise or why your solution doesn't work, please contact your TA or instructor.
If something seems wrong with the site (errors, slow performance, incorrect tests, etc.), please

Is there a problem? Contact a site administrator.

©, all rights reserved.