No label this time
From here on, the steps don't tell you which idea to use. A problem arrives with no label, and you decide which tools to reach for. Before you start, ask: what am I repeating, what choices do I make each time, and what do I build up?
A small hint for this one. Some numbers fit more than one rule, such as 15, which is a multiple of 3 and of 5. When one number fits two rules, the order you ask the questions in decides the answer.
Before coding: what repeats, what is chosen, and what is built up?
Counting from 1 to 15
1
02
13
24
35
46
57
68
79
810
911
1012
1113
1214
1315
14i
- i
- 1
- word
- 1
1 is not a multiple of 3 or 5, so the word is the number itself, as text.
Move 1 of 5