Skip to content

Precedence rules: BEDMAS and order of operation #12

Description

@JoePelz

Parentheses are observed but otherwise order of operations is right to left.
Therefor:

a = 3+3*3+3
b = (3+3)*3+3

result in:

a == 21
b == 36

Expected result:

a = 15
b = 21

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions