using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApp14 { class Program { static void Main(string[] args) { int n = int.Parse(Console.ReadLine()); for (int i = 1; i <= n; ++i) { string output=""; if (i % 3 == 0) {output += "Fizz";} if (i % 5 == 0) {output += "Buzz"; } if (output==""){Console.WriteLine(i); } else{ Console.WriteLine(output); } } Console.ReadLine(); } } }