static void ParamsMethod(params int[] list)
{
for (int i = 0; i < list.Length; i++)
{
Console.WriteLine(list[i]);
}
Console.ReadLine();
}
ParamsMethod( 25, 24, 21, 15);//调用