using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApplication4
{
class Program
{
static void Main(string[] args)
{
int sd=Suanshu(5, 6);
int sdf = Suanshu1(1, 2, 3);
int asd = Suanshu2(5, 6, 6, 8);
Console.WriteLine("2个数的和" + sd);
Console.WriteLine("3个数的和"+sdf);
Console.WriteLine("4个数的和" + asd);
Console.ReadKey();
}
static int Suanshu(int a,int b)
{
int sum;
sum = a + b;
return sum;
}
static int Suanshu1(int c, int d, int e)
{
int sum1 = c + d + e;
return sum1;
}
static int Suanshu2(int f, int g, int h, int j)
{
int sum2 = f + g + h + j;
return sum2;
}
}
}
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
us