Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
15
Task/Binary-digits/Component-Pascal/binary-digits.pas
Normal file
15
Task/Binary-digits/Component-Pascal/binary-digits.pas
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
MODULE BinaryDigits;
|
||||
IMPORT StdLog,Strings;
|
||||
|
||||
PROCEDURE Do*;
|
||||
VAR
|
||||
str : ARRAY 33 OF CHAR;
|
||||
BEGIN
|
||||
Strings.IntToStringForm(5,2, 1,'0',FALSE,str);
|
||||
StdLog.Int(5);StdLog.String(":> " + str);StdLog.Ln;
|
||||
Strings.IntToStringForm(50,2, 1,'0',FALSE,str);
|
||||
StdLog.Int(50);StdLog.String(":> " + str);StdLog.Ln;
|
||||
Strings.IntToStringForm(9000,2, 1,'0',FALSE,str);
|
||||
StdLog.Int(9000);StdLog.String(":> " + str);StdLog.Ln;
|
||||
END Do;
|
||||
END BinaryDigits.
|
||||
Loading…
Add table
Add a link
Reference in a new issue