# Order of Operations With Whole Numbers

#### Complete Python Prime Pack

9 Courses     2 eBooks

#### Artificial Intelligence & Machine Learning Prime Pack

6 Courses     1 eBooks

#### Java Prime Pack

9 Courses     2 eBooks

Evaluate the following

9 – 8 ÷ 4 + 6 × 3

### Solution

Step 1:

We follow the rule of order of operations PEMDAS.

There are no parentheses and exponents here.

Step 2:

So we first do all multiplication and division from left to right

9 – 8 ÷ 4 + 6 × 3 =

9 – 2 + 18

Step 3:

We then do all addition and subtraction from left to right

9 – 2 + 18 =

7 + 18 =

25

Step 4:

So 9 – 8 ÷ 4 + 6 × 3 = 25

Evaluate the following

18 ÷ 6 + 2 × 7 – 5

### Solution

Step 1:

We follow the rule of order of operations PEMDAS.

There are no parentheses and exponents here.

Step 2:

So we first do all multiplication and division from left to right

18 ÷ 6 + 2 × 7 – 5 =

3 + 14 – 5

Step 3:

We then do all addition and subtraction from left to right

3 + 14 – 5 =

17 – 5 = 12

Step 4:

So 18 ÷ 6 + 2 × 7 – 5 = 12