问问你们的王老师去

解决方案 »

  1.   

    3楼 我知道你是谁了 哈哈
      

  2.   

    eusing System;
    using System.Collections.Generic;
    using System.Text;namespace ConsoleApplication43
    {
        class Program
        {
            static void Main(string[] args)
            {
                Console.WriteLine(GetItem(0)); // 2.71825396825397
                Console.Read();
            }        static double GetNM(int M)
            {
                if (M == 0 || M == 1)
                    return 1;
                return M * GetNM(M - 1);
            }        static double GetItem(int N)
            {
                double Item = 1 / GetNM(N);
                if (Item < 10E-5)
                    return 0;
                else
                    return Item + GetItem(N + 1);
            }
        }
    }