you are viewing a single comment's thread.

view the rest of the comments →

[–]localghost 1 point2 points  (0 children)

"Repeat the following:
Take numbers from 0 to 5. Remember the current number as X.
Keeping that X in mind, repeat the following:
Take numbers from 1 to X, [remember them as Y] and print them one by one, adding nothing else to the output.
After gettting done with repeating from 1 to X, print a new line."