C++ Easy Solution || Beginner's Friendly ||
Please Upvote the solution if  it helped you\n\nCode->\n\nclass Solution {\npublic:\n    vector<string> fizzBuzz(int n) {\n        vector<string> vec;\n        
**Please Upvote the solution if  it helped you**\n\nCode->\n```\nclass Solution {\npublic:\n    vector<string> fizzBuzz(int n) {\n        vector<string> vec;\n        int i=1;\n        while(i!=n+1){\n            if(i%3==0 && i%5==0)\n                vec.push_back("FizzBuzz");\n            else if(i%3==0)\n                vec.push_back("Fizz");\n            else if(i%5==0)\n                vec.push_back("Buzz");\n                else \n                vec.push_back(to_string(i));\n            i++;\n        }\nreturn vec;\n    }\n};\n```\n\nHappy Coding :-)\n
['C', 'C++']