Skip to main content

Order of Operations

Like PEDMAS for math equations, there is an order of operations for ALL programming operations.

  1. Parenthesis (())
  2. Multiplication, Division (*, /)
  3. Addition & Subtraction (+, -)
  4. Comparison (<, <=, >, >=, !=, ==)
  5. Logical NOT (not)
  6. Logical AND (and)
  7. Logical OR (or)
  8. Assignment (=)

References​

Bultena, Sandra and Youmna Badawy. "Integers & Floats." 420-SN1 Notes, John Abbott College, john-abbott-college.github.io/SN1-Notes/topics/04_variables/03_integers_floats/03_integers_floats.html