Repeat a string: Difference between revisions
Content added Content deleted
No edit summary |
(added Inform 7 solution) |
||
Line 313: | Line 313: | ||
==={{header|Unicon}}=== |
==={{header|Unicon}}=== |
||
This Icon solution works in Unicon. |
This Icon solution works in Unicon. |
||
=={{header|Inform 7}}== |
|||
<lang inform7>Home is a room. |
|||
To decide which indexed text is (T - indexed text) repeated (N - number) times: |
|||
let temp be indexed text; |
|||
repeat with M running from 1 to N: |
|||
let temp be "[temp][T]"; |
|||
decide on temp. |
|||
When play begins: |
|||
say "ha" repeated 5 times; |
|||
end the story.</lang> |
|||
=={{header|J}}== |
=={{header|J}}== |