Four is the number of letters in the ...: Difference between revisions
Content added Content deleted
m (added wording to the task) |
|||
Line 19: | Line 19: | ||
;Task: |
;Task: |
||
:* Write a driver (invoking routine) and a function (subroutine/routine···) that returns the sequence (for any positive integer) of the number of letters in the first '''N''' words in the never─ending sentence. For instance, the portion of the never─ending sentence shown above (2<sup>nd</sup> sentence of this task), the sequence would be: |
:* Write a driver (invoking routine) and a function (subroutine/routine···) that returns the sequence (for any positive integer) of the number of letters in the first '''N''' words in the never─ending sentence. For instance, the portion of the never─ending sentence shown above (2<sup>nd</sup> sentence of this task's preamble), the sequence would be: |
||
'''4 2 3 6 2 7''' |
'''4 2 3 6 2 7''' |
||
:* Only construct as much as is needed for the never─ending sentence. |
:* Only construct as much as is needed for the never─ending sentence. |