예제 #1
0
        static void Main()
        {
            Fibbonacci   fi  = new Fibbonacci();
            TriangleNums tr  = new TriangleNums();
            List <int>   fib = new List <int>();
            List <int>   tri = new List <int>();

            foreach (int numb in fi.nextMemb(7))
            {
                fib.Add(numb);
                Console.Write(numb + "  ");
            }
            Console.WriteLine();
            foreach (int numb in tr.nextMemb(7))
            {
                tri.Add(numb);
                Console.Write(numb + "  ");
            }
            Console.WriteLine();
            for (int i = 0; i < fib.Count; i++)
            {
                Console.Write(fib[i] + tri[i] + "  ");
            }
            Console.WriteLine();
        }
        static void Main()
        {
            Fibbonacci fi = new Fibbonacci();

            foreach (int numb in fi.nextFib(7))
            {
                Console.Write(numb + " ");
            }
            Console.WriteLine();

            foreach (int numb in fi.nextFib(7))
            {
                Console.Write(numb + " ");
            }

            Console.WriteLine();
        }