Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
19
Task/Repeat/ALGOL-W/repeat.alg
Normal file
19
Task/Repeat/ALGOL-W/repeat.alg
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
begin
|
||||
% executes the procedure routine the specified number of times %
|
||||
procedure repeat ( integer value count; procedure routine ) ;
|
||||
for i := 1 until count do routine;
|
||||
begin
|
||||
integer x;
|
||||
% print "hello" three times %
|
||||
repeat( 3, write( "hello" ) );
|
||||
% print the first 10 squares %
|
||||
write();
|
||||
x := 1;
|
||||
repeat( 10
|
||||
, begin
|
||||
writeon( i_w := s_w := 1, x * x );
|
||||
x := x + 1
|
||||
end
|
||||
)
|
||||
end
|
||||
end.
|
||||
Loading…
Add table
Add a link
Reference in a new issue