mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-11 16:48:29 +02:00
14 lines
279 B
ObjectPascal
14 lines
279 B
ObjectPascal
Program Example38;
|
|
|
|
{ Program to demonstrate the Lo function. }
|
|
|
|
Var L : Longint;
|
|
W : Word;
|
|
|
|
begin
|
|
L:=(1 Shl 16) + (1 Shl 4); { $10010 }
|
|
Writeln (Lo(L)); { Prints 16 }
|
|
W:=(1 Shl 8) + (1 Shl 4); { $110 }
|
|
Writeln (Lo(W)); { Prints 16 }
|
|
end.
|