...

/

Challenge: Loops, Operators, and Exception Handling

Challenge: Loops, Operators, and Exception Handling

Check your understanding of loops, operators, and exception-handling code.

Loops challenge

Let's have a look at the problem statement of the challenge.

Problem statement

FizzBuzz is a group game for children to teach them about division. Players take turns to count incrementally, replacing any number divisible by three with the word fizz, any number divisible by five with the word buzz, and any number divisible by both with fizzbuzz. Write code that outputs a simulated FizzBuzz game that counts up to ...