ex31.pp 236 B

1234567891011121314
  1. Program Example31;
  2. { Program to demonstrate the Hi function. }
  3. var
  4. L : Longint;
  5. W : Word;
  6. begin
  7. L:=1 Shl 16; { = $10000 }
  8. W:=1 Shl 8; { = $100 }
  9. Writeln (Hi(L)); { Prints 1 }
  10. Writeln (Hi(W)); { Prints 1 }
  11. end.