#include using namespace std; int main() { int i; int N; static int iZero; int iFizz; int iBuzz; int iFizzBuzz; // 値を設定 iFizz = iZero; iFizz++; iFizz++; iFizz++; iBuzz = iFizz; iBuzz++; iFizzBuzz = iFizz * iBuzz; // FizzBuzz cin >> N; for( i = 1; i <= N; i++ ) { if( i % iFizzBuzz == 0 ) cout << "FizzBuzz" << endl; else if( i % iBuzz == 0 ) cout << "Buzz" << endl; else if( i % iFizz == 0 ) cout << "Fizz" << endl; else cout << i << endl; } return 0; }