RosettaCodeData/Task/Loops-For/Plain-English/loops-for.plain
2023-07-01 13:44:08 -04:00

15 lines
451 B
Text

To run:
Start up.
Write a triangle of asterisks on the console given 5.
Wait for the escape key.
Shut down.
To write a row of asterisks on the console given a number:
If a counter is past the number, write "" on the console; exit.
Write "*" on the console without advancing.
Repeat.
To write a triangle of asterisks on the console given a size:
If a counter is past the size, exit.
Write a row of asterisks on the console given the counter.
Repeat.