using System;
public class Sum_Test
{
public static void Main()
{
int sum=0;
Console.WriteLine ("你想算几个数的和:(0-100)");
int i_number=int.Parse (Console.ReadLine ());
int[] A=new int [i_number];
for(int i=0;i<i_number;i++)
{
Console.WriteLine ("请输入第{0}个数:",i+1);
A[i]=int.Parse (Console.ReadLine ());
sum+=A[i];
}
Console.WriteLine ("这{0}个数的和是{1}:",i_number,sum);
}
}
声明:我这是盗版