public void main(){int n=10;//设置输入10次int[] ii=new int[n];//设置个数组由10个项组成for(int i=0;i{ii[i]=Convert.ToInt32(Console.ReadLine());}} C#或者JAVA语言
int data[100],n,i;scanf("%d",&n); //n<=100for(i=0;iscanf("%d",&data[i]);