Substring/Top and tail: Difference between revisions
Content added Content deleted
(Added Wren) |
(Add Plain English) |
||
Line 1,319: | Line 1,319: | ||
Last character removed=now is the time to come to the aid of the part |
Last character removed=now is the time to come to the aid of the part |
||
One character from each end removed=ow is the time to come to the aid of the part |
One character from each end removed=ow is the time to come to the aid of the part |
||
</pre> |
|||
=={{header|Plain English}}== |
|||
<lang plainenglish>To run: |
|||
Start up. |
|||
Demonstrate removing the first and last characters from "Rosetta Code". |
|||
Wait for the escape key. |
|||
Shut down. |
|||
To demonstrate removing the first and last characters from a string: |
|||
Slap a substring on the string. |
|||
Add 1 to the substring's first. |
|||
Write the substring on the console. |
|||
Subtract 1 from the substring's first. |
|||
Subtract 1 from the substring's last. |
|||
Write the substring on the console. |
|||
Add 1 to the substring's first. |
|||
Write the substring on the console.</lang> |
|||
{{out}} |
|||
<pre> |
|||
osetta Code |
|||
Rosetta Cod |
|||
osetta Cod |
|||
</pre> |
</pre> |
||