logo CodeStepByStep logo

ExpressionsNumbers37

Language/Type: C# expressions %

By applying the appropriate precedence rules, calculate the result of each of the following expressions. Make sure to give a value of the appropriate type (such as including a .0 at the end of a double).

6 + 5 / 4 - 3
2 + 2 * (2 * 2 - 2) % 2 / 2
10 + 9 * ((8 + 7) % 6) + 5 * 4 % 3 * 2 + 1
1 + 2 + (3 + 4) * ((5 * 6 % 7 * 8) - 9) - 10

You must log in before you can solve this problem.

Log In

Need help?

Stuck on an exercise? Contact your TA or instructor.

If something seems wrong with our site, please

Is there a problem? Contact us.