Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
16
Task/Repeat-a-string/Plain-English/repeat-a-string.plain
Normal file
16
Task/Repeat-a-string/Plain-English/repeat-a-string.plain
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
To run:
|
||||
Start up.
|
||||
Put "ha" into a string.
|
||||
Append the string to itself given 5.
|
||||
Write the string on the console.
|
||||
Fill another string with the asterisk byte given 5.
|
||||
Write the other string on the console.
|
||||
Wait for the escape key.
|
||||
Shut down.
|
||||
|
||||
To append a string to itself given a number:
|
||||
If the number is less than 1, exit.
|
||||
Privatize the string.
|
||||
Privatize the number.
|
||||
Subtract 1 from the number.
|
||||
Append the string to the original string given the number.
|
||||
Loading…
Add table
Add a link
Reference in a new issue