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, Strings in quotes).
1) 12/5 + 8/4
2) 2.5 * 2 + 17/4
3) 41 % 15 % 7 + 17 % 3
4) 21/2 + "7 % 3" + 17 % 4
5) 46/3/2.0/3 * 4/5