Quiz: Arithmetic Operations
Oops! There's an extra open parenthesis for the line starting with double a. It should look like this:
double a = (x+1 * 4) * (2+y);
Fill in the values that are actually computed. Sara also asks what you expect, but keep those to yourself.
double a = (x+1 * 4) * (2+y); |
42 | |
double b = x + y / 2 + xy; |
16 | |
double c = (4 + cos) / 2; |
4 |