Coding Challenge: FizzBuzz
Learn how to find multiples of 3 or 5 and returning appropriate messages based on the result.
We'll cover the following
Problem statement
Write a program that shows all numbers between and with the following exceptions:
- If the number is divisible by 3, it should display
Fizz
- If the number is divisible by 5, it should display
Buzz
- If the number is divisible both by 5 and by 3, it should display
FizzBuzz
This exercise has many, many solutions. It’s a job interview classic that a significant number of candidates fail. Try your best!
Coding exercise
Get hands-on with 1400+ tech skills courses.