← Back to Printing
Question 81
Order Of Operations On Screen
Order Of Operations On Screen
Three integers are declared. Print two lines of output: first the value of the base plus the bonus times the multiplier, where multiplication happens before addition, then the value when the addition is wrapped in parentheses so it happens first. Each calculation goes straight inside its print call. Input: none; the values are fixed in the code.
Expected Output:
11 14
= newline. The output ends with a newline — print one after the last line.
Hints2 available
Sign in to use hintsTopics:
PrintingOperators
1
Tab to indent (Esc then Tab to move on) · Ctrl+Enter to run · Ctrl+Space to expand shortcuts (pr, inp, def)
Your Output
Run your code to see the output here...
Test Cases
Run your code to see test case results.