Write a test program in your favorite language that determines and output the precedence and associativity of its arithmatic and Boolean operators.
in javascript:
var a = 5,
b = 10,
c = true,
d = false;
b+=a; alert('b+a='+b);
b-=2*a; alert('b-a='+b);
b=(b+a)/a; alert('b/a='+b);
b*=a*a; alert('b*a='+b);
с&=d; alert('c&d='+c);
с|=d; alert('c|d='+c);
с^=d; alert('c^d='+c);