Problem - Evaluating Expressions
Below are six expressions. You should attempt to evaluate these by hand.
Write your prediction for what the expression will evaluate to in the comment below the expression
Uncomment the expression to see if you evaluated it correctly
Note in the comment after your prediction if you were correct. If you were not correct, describe what mistake you made.
Expression 1
// 2 + 3 * 4 - 6
Your predicted value
//
Were you correct?
//
Expression 2
// 14 / 7 * 2 + 30 / 5 + 1
Your predicted value
//
Were you correct?
//
Expression 3
// ( 12 + 6 ) / 3 * 2
Your predicted value
//
Were you correct?
//