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

8 lines
104 B
Text
Raw Permalink Normal View History

2019-09-12 10:33:56 -07:00
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