Click 'Run' to go.

** It's this simple: Arithmetic inside of parentheses is calculated first.** If there are parentheses inside of parentheses, then the arithmetic within the

Any arithmetic calculated ** within parentheses** proceeds with the

So this expression:

**(2 + 3) * 4**

Evaluates to ** 20** because:

- We start
of the parentheses and add*inside*plus*2*to get*3*.*5* - We then take the
and multiply it by*5*to get*4*.*20*

Note that in this example ** addition** was done

Be sure to note the parentheses as they appear in the **print** command in this demo. Try ** different** combinations of

Slow
Medium
Fast

Click 'Run' to go.

Click 'Run' to go.

Many programers will use parentheses to show their calculations more as:
mathematics notationy = mx + b
In a let y = m * x + b
Since multiplication has precedence over addition, let y = (m * x) + b
Although the parentheses are not needed, many feel they aid understanding by clearly showing the |

*Here's the current flowchart for this demo:*

*This could appear like so in an imaginary computer language:*

print((2 + 3) * 4);

*Suggested next article:*

The following article is related to this demo: