using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApp21 { class Program { static void Main(string[] args) { int N = int.Parse(Console.ReadLine()); string[] x = new string[N]; for (int i = N; i != 0;--i) { if (i % 3 == 0) { x[i-1] = "Fizz"; } if (i % 5 == 0) { x[i-1] = x[i - 1]+"Buzz"; } if (i % 3 != 0 && i % 5 != 0) { x[i-1] = i.ToString();} } foreach (string i in x) { Console.WriteLine("{0}",i); } Console.ReadLine(); } } }