Day 6 involved a lot of loop learning. As usual this was a case of ‘How to use them’ and ‘When to use them’ I really enjoyed this section but like last time, the checkpoint had me stumped.
The checkpoint was what is known as Fizz Buzz. The idea is that you’re printing numbers from 1-100. If your number is a multiple of 3 it prints “Fizz’ and if it’s a multiple of 5 it prints ‘Buzz’. Finally, if it’s both a multiple of 3 and 5 - you guessed it! It prints ‘FizzBuzz’
I managed to get the numbers sorted and managed to get the wording sorted but ended up with a situation where it was listing all the numbers and also the words (which were correctly placed but you’d see something such as 1, 2, 3 ,Fizz, instead of 1, 2, Fizz) after going over notes, I needed to get a hint and eventually got the result! Blimey, I almost felt like that came together there! - That was kind of addicting.