Challenge 2
🔂
For Loops Simple
Write separate loops to output:
Tasks:
- all the denary digits from 1-1000
- from 5 to 10
- counting down from 10 to 0
- all the even numbers up to 100
- all the odd numbers up to 99
- the 7 times table, counting down from 700
- a variable step amount - e.g. 1, 2, 3 (if starting from 1, would output 1, 2, 4, 7, 11, 16, 22 etc)
Extension:
Output any additional numeric sequence - the first 100 square numbers, the first 100 powers of 2 etc