Very easy C++ soln


#1

vector v;
for(int i=1;i<=A;i++)
{
if(i%15==0)
{
v.push_back(“FizzBuzz”);
}
else if(i%3==0)
{
v.push_back(“Fizz”);
}
else if(i%5==0)
{
v.push_back(“Buzz”);
}
else
{
string s=to_string(i);
v.push_back(s);
}
}
return v;