Somebody tell me the precedence of the arithmetic operators. | Sololearn: Learn to code for FREE!
Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren
+ 1

Somebody tell me the precedence of the arithmetic operators.

18th May 2018, 4:30 AM
DEV RAAZ
DEV RAAZ - avatar
3 Antworten
+ 7
1 exponents and roots 2 multiplication and division 3 addition and subtraction
18th May 2018, 4:50 AM
Kawaii
Kawaii - avatar
+ 1
Kawaii You should probably also add groupings to that.
18th May 2018, 4:54 AM
Ben Allen (Njinx)
Ben Allen (Njinx) - avatar
0
1. parenthesis 2. multiplication and division 3. addition and subtraction 4. relational operators 5. Equality operators
29th May 2018, 11:52 AM
Alok Danodia
Alok Danodia - avatar