Masala #G6H9DTJSKD
FizzBuzz #1
let the number be FizzBuzz if divided by 3 and 7, let it be “Fizz” if divisible by only 3, let it be “Buzz” if divisible by only 7, otherwise let it be "bad"
Kiruvchi ma'lumotlar:
A son kirib keladi
Chiquvchi ma'lumotlar:
javobni chiqaring
Misollar
# | input.txt | output.txt |
---|---|---|
1 |
3 |
Fizz |
2 |
7 |
Buzz |
3 |
21 |
FizzBuzz |