Skip to content

algorithmseasy

FizzBuzz

50 points · 0 solved

Read n (1 ≤ n ≤ 100). For each number from 1 to n print one line: FizzBuzz if divisible by 15, Fizz if divisible by 3, Buzz if divisible by 5, otherwise the number.

5
1
2
Fizz
4
Buzz
15
1
2
Fizz
4
Buzz
Fizz
7
8
Fizz
Buzz
11
Fizz
13
14
FizzBuzz
Learn the technique/learn/programming-fundamentals

main.py