Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
10
Task/Loops-Do-while/ALGOL-60/loops-do-while-1.alg
Normal file
10
Task/Loops-Do-while/ALGOL-60/loops-do-while-1.alg
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
'BEGIN' 'COMMENT' Loops DoWhile - Algol60 - 22/06/2018;
|
||||
'INTEGER' I;
|
||||
I:=0;
|
||||
LOOP:
|
||||
I:=I+1;
|
||||
OUTINTEGER(1,I);
|
||||
'IF' I=I'/'6*6 'THEN' 'GOTO' ENDLOOP;
|
||||
'GOTO' LOOP;
|
||||
ENDLOOP:
|
||||
'END'
|
||||
14
Task/Loops-Do-while/ALGOL-60/loops-do-while-2.alg
Normal file
14
Task/Loops-Do-while/ALGOL-60/loops-do-while-2.alg
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
begin
|
||||
|
||||
integer i;
|
||||
boolean another;
|
||||
i := 0;
|
||||
another := true;
|
||||
for i := i + 1 while another do
|
||||
begin
|
||||
outinteger(1,i);
|
||||
comment - repeat until i mod 6 = 0;
|
||||
if i = (i div 6) * 6 then another := false;
|
||||
end;
|
||||
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue