RosettaCodeData/Task/Variable-size-Get/Modula-3/variable-size-get.mod3

10 lines
205 B
Plaintext

MODULE Size EXPORTS Main;
FROM IO IMPORT Put;
FROM Fmt IMPORT Int;
BEGIN
Put("Integer in bits: " & Int(BITSIZE(INTEGER)) & "\n");
Put("Integer in bytes: " & Int(BYTESIZE(INTEGER)) & "\n");
END Size.