Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
7
Task/Repeat-a-string/Maple/repeat-a-string-1.maple
Normal file
7
Task/Repeat-a-string/Maple/repeat-a-string-1.maple
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
> use StringTools in
|
||||
> Repeat( "abc", 10 ); # repeat an arbitrary string
|
||||
> Fill( "x", 20 ) # repeat a character
|
||||
> end use;
|
||||
"abcabcabcabcabcabcabcabcabcabc"
|
||||
|
||||
"xxxxxxxxxxxxxxxxxxxx"
|
||||
5
Task/Repeat-a-string/Maple/repeat-a-string-2.maple
Normal file
5
Task/Repeat-a-string/Maple/repeat-a-string-2.maple
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
> cat( "abc" $ 10 );
|
||||
"abcabcabcabcabcabcabcabcabcabc"
|
||||
|
||||
> cat( seq( "abc", i = 1 .. 10 ) );
|
||||
"abcabcabcabcabcabcabcabcabcabc"
|
||||
3
Task/Repeat-a-string/Maple/repeat-a-string-3.maple
Normal file
3
Task/Repeat-a-string/Maple/repeat-a-string-3.maple
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
> s := "":
|
||||
> to 10 do s := cat( s, "abc" ) end: s;
|
||||
"abcabcabcabcabcabcabcabcabcabc"
|
||||
Loading…
Add table
Add a link
Reference in a new issue