#include #include using namespace std; int main() { int a; cin >> a; string text = ""; bool devidedBy3; bool devidedBy5; for (int i = 1; i <= a; i++) { devidedBy3 = false; devidedBy5 = false; if (i % 3 == 0) { devidedBy3 = true; text += "Fizz"; } if (i % 5 == 0) { devidedBy5 = true; text += "Buzz"; } if (!devidedBy3 && !devidedBy5) { text += to_string(i); } text += "\n"; } cout << text; }