Skip to content

Files

Latest commit

 

History

History

04

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

Exercise 4.04

Parenthesize the following expression to show how it is evaluated. Test your answer by compiling the expression (without parentheses) and printing its result.

12 / 3 * 4 + 5 * 15 + 24 % 4 / 2

Solution

(((12 / 3) * 4) + ((5 * 15) + ((24 % 4) / 2)))

See 4.cc.