遞歸求和

    技术2022-05-11  55

    public int GetSum(int end)

    {

      if (end==1){return end;}else return end+GetSum(end-1);

    }


    最新回复(0)