tasks a-s
This commit is contained in:
parent
47bf37c096
commit
b83f433714
12433 changed files with 156208 additions and 123 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