C# | Nice and simple | Beginner level
\n\npublic class Solution {\n    public IList<string> FizzBuzz(int n) {\n        List<string> result = new();\n        \n        for (int i = 1; i <= n; i++)\n 
``` \n\npublic class Solution {\n    public IList<string> FizzBuzz(int n) {\n        List<string> result = new();\n        \n        for (int i = 1; i <= n; i++)\n        {\n            if (i % 3 == 0 && i % 5 == 0) {\n                result.Add("FizzBuzz");\n            } else if (i % 3 == 0) {\n                result.Add("Fizz");\n            } else if (i % 5 == 0) {\n                result.Add("Buzz");\n            } else {\n                result.Add($"{i}");\n            }\n        }\n        \n        return result;\n    }\n}\n```
['C#']