def bitwise(a, b)
  form = 
  puts form % [, a]
  puts form % [, b]
  puts form % [, a & b]
  puts form % [, a | b]
  puts form % [, a ^ b]
  puts form % [, ~a]
  puts form % [, a << b]  
  puts form % [, a >> b]  
end

bitwise(14,3)