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/Simula/binary-digits.simula
Normal file
15
Task/Binary-digits/Simula/binary-digits.simula
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
BEGIN
|
||||
|
||||
PROCEDURE OUTINTBIN(N); INTEGER N;
|
||||
BEGIN
|
||||
IF N > 1 THEN OUTINTBIN(N//2);
|
||||
OUTINT(MOD(N,2),1);
|
||||
END OUTINTBIN;
|
||||
|
||||
INTEGER SAMPLE;
|
||||
FOR SAMPLE := 5, 50, 9000 DO BEGIN
|
||||
OUTINTBIN(SAMPLE);
|
||||
OUTIMAGE;
|
||||
END;
|
||||
|
||||
END
|
||||
Loading…
Add table
Add a link
Reference in a new issue