RosettaCodeData/Task/Operator-precedence/Q/operator-precedence.q
2019-09-12 10:33:56 -07:00

7 lines
104 B
Text

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