using System; using System.Text; namespace ConsoleApplication1 { class Program { static void Main() { int a,i; string msg = Console.ReadLine(); a = int.Parse(msg); for (i = 0; i < a; i++) { if (i % 15 == 0) { msg = "FizzBuzz"; } else if (i % 5 == 0) { msg = "Buzz"; } else if (i % 3 == 0) { msg = "Fizz"; } else { msg = i.ToString(); } Console.Write("{0}", msg); } } } }