using System;
namespace Methods4
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine(Sumission(1,2,3,4,5,6));
Console.ReadKey();
}
static double Sumission(params int[] arguments)
{
int sum=0;
foreach(int i in arguments)
{
sum += i;
}
return sum;
}
}
}
namespace Methods4
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine(Sumission(1,2,3,4,5,6));
Console.ReadKey();
}
static double Sumission(params int[] arguments)
{
int sum=0;
foreach(int i in arguments)
{
sum += i;
}
return sum;
}
}
}
Comments
Post a Comment