Hello, World! in B

Example for versions H6070 B

An example from “A tutorial introduction to the language B” by Kernigan. Shows usage and initialization of global variables.

main( ) {
  extrn a, b, c;
  putchar(a);
  putchar(b);
  putchar(c);
  putchar('!*n');
}

a 'Hell';
b 'o, W';
c 'orld';