You are on page 1of 1

#include <bits/stdc++.

h>
using namespace std;
int main()
{
int n = 100;

for (int i = 1; i <= 100; i++)


{
if (i % 5 == 0 && i % 3 == 0)
{
cout << "FizzBuzz" << endl;
}

else if (i % 5 == 0)
{
cout << "Buzz" << endl;
}

else if (i % 3 == 0)
{
cout << "Fizz" << endl;
}

else
{
cout << i << endl;
}
}
cout << endl;
}

You might also like