Exemple #1
0
        static void Main(string[] args)
        {
            Fibonacci fi = new Fibonacci();

            fi.GerarFibonacci(0, 3, 12);
            Console.WriteLine(fi.GerarFatorial(5));
        }
Exemple #2
0
        static void Main(string[] args)
        {
            Fibonacci rec = new Fibonacci();

            Console.ForegroundColor = ConsoleColor.Blue;
            rec.GerarSequenciaFibonacci(0, 1, 15);
            Console.ForegroundColor = ConsoleColor.Yellow;
            System.Console.WriteLine($"Fatorial: {rec.GerarFatorial(5)}");
        }
        static void Main(string[] args)
        {
            Fibonacci fibon = new Fibonacci();

            Console.ForegroundColor = ConsoleColor.Red;
            System.Console.WriteLine("                 Sequência de Fibonacci                ");
            Console.ResetColor();
            Console.ForegroundColor = ConsoleColor.Yellow;
            fibon.GerarSequenciaFibonacci(0, 1, 15);
            Console.ResetColor();
            System.Console.WriteLine("");
            Console.ForegroundColor = ConsoleColor.Red;
            System.Console.WriteLine("                    Gerando fatorial do número 5            ");
            Console.ResetColor();
            Console.ForegroundColor = ConsoleColor.Yellow;
            System.Console.WriteLine(fibon.GerarFatorial(5));
            Console.ResetColor();
        }