RosettaCodeData/Task/Operator-precedence/Q/operator-precedence.q

8 lines
104 B
Plaintext

q)3*2+1
9
q)(3*2)+1 / Brackets give the usual order of precedence
7
q)x:5
q)(x+5; x:20; x-5)
25 20 0