Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
17
Task/Reverse-a-string/Seed7/reverse-a-string.seed7
Normal file
17
Task/Reverse-a-string/Seed7/reverse-a-string.seed7
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
$ include "seed7_05.s7i";
|
||||
|
||||
const func string: reverse (in string: stri) is func
|
||||
result
|
||||
var string: result is "";
|
||||
local
|
||||
var integer: index is 0;
|
||||
begin
|
||||
for index range length(stri) downto 1 do
|
||||
result &:= stri[index];
|
||||
end for;
|
||||
end func;
|
||||
|
||||
const proc: main is func
|
||||
begin
|
||||
writeln(reverse("Was it a cat I saw"));
|
||||
end func;
|
||||
Loading…
Add table
Add a link
Reference in a new issue