#include using namespace std; class Test{ public: void fizzbuzz( int n ){ for( int i = 1; i <= n; i++ ){ if( i % 3 == 0 ) cout << "Fizz"; if( i % 5 == 0 ) cout << "Buzz"; if( i % 3 && i % 5 ) cout << i; cout << endl; } } }; Test test; int main(){ int n; cin >> n; test.fizzbuzz(n); return 0; }