We need to follow the order of operation or operator precedence rule known as PEMDAS when we go from left to right of an expression. What are the Orders of Operation. The mathematical orders of operation are the rules describing the sequence in which the operations in an expression are performed. More @Wikipedia
Hover over any link to get a description of the article. Please note that search keywords are sometimes hidden within the full article and don't appear in the description or title.