摘要:
int[] shuzu = new int[10] {1,5,2,3,4,8,9,6,7,10 }; for (int i = 0; i < shuzu.Length;i++ ) { for (int j = i; j<shuzu.Length-1;j++ ) { if(shuzu[i]<shuzu 阅读全文
摘要:
double [] a=new double[5]; a[0] = 10; double jg=10; for (int i=0;i<5 ;i++ ) { a[i] = jg; jg = a[i] * 0.8; } Console.WriteLine("结果为{0}",a[4]); 阅读全文
摘要:
int[] xs = new int[10]; int [] cj=new int [3]; for (int i=0;i<10 ;i++ ) { Console.Write("请输入{0}号学生的成绩:",i+1); xs[i] = Convert.ToInt32(Console.ReadLine 阅读全文