number = int(input("Введите натуральное число: "))
if number % 5 == 0 and number % 7 == 0:
print("FizzBuzz")
elif number % 5 == 0:
print("Fizz")
elif number % 7 == 0:
print("Buzz")
else:
print(number)
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
number = int(input("Введите натуральное число: "))
if number % 5 == 0 and number % 7 == 0:
print("FizzBuzz")
elif number % 5 == 0:
print("Fizz")
elif number % 7 == 0:
print("Buzz")
else:
print(number)