Expressions
Category: Expressions
Author: Stuart Reges
Book Chapter: 2.1
Problem: Expressions
For each expression in the left-hand column, indicate its value in the right-hand column. Be sure to list a constant of appropriate type (e.g., 7.0 rather than 7 for a double).
1) 208 % 10 - 90 % 55 % 10
2) 31 % 8/3 * 1.2
3) 203 / 10 / 2.0 / 4
4) 79 % (14/3) - 6 * 7/3
5) 2 + 3 + "-" + 8 * 2 + 3 * 4