Exemplo n.º 1
0
        static void Main(string[] args)
        {
            Console.WriteLine("Classic Fizz Buzz: ");
            GetFizzBuzzModel = new FizzBuzzReference.FizzBuzzModel();
            var result = new StringBuilder();

            for (int i = 1; i <= 100; i++)
            {
                result.AppendFormat("{0} \n", GetFizzBuzzModel.Process(i));
            }
            Console.WriteLine(result);
            Console.ReadLine();
        }
Exemplo n.º 2
0
        static void Main(string[] args)
        {
            Console.WriteLine("Advanced Fizz Buzz: ");
            GetFizzBuzzModel = new FizzBuzzReference.FizzBuzzModel(advancedNumTokenPair);

            var result = new StringBuilder();

            for (int i = -12; i <= 145; i++)
            {
                result.AppendFormat("{0} \n", GetFizzBuzzModel.Process(i));
            }
            Console.WriteLine(result.ToString());
            Console.ReadLine();
        }