← Operators & Expressions

Order of Operations

easy

Read three integers a b c and print the value of a + b * c, in the form Result: 14.

This is a direct check that you’re reading the expression the way the compiler does, not strictly left to right: * runs before +, exactly like ordinary math. Work out 2 + 3 * 4 by hand before you code anything – if you get 20, re-read the precedence section of the lesson before continuing.

Your solution

"Run" uses the sample stdin ("2 3 4"). "Submit" checks your code against all 3 test cases.

Test results

Submit your solution to run it against all test cases.

Hints

    Reference solution