码迷,mamicode.com
首页 > 其他好文 > 详细

教练打分

时间:2016-05-13 20:34:35      阅读:141      评论:0      收藏:0      [点我收藏+]

标签:

//教练打分             //            int[] a = new int[10];             //            for (int i = 1; i <= 10;i ++ )             //            {             //                Console.Write("请给第{0}个球员打分", i);             //                a[i - 1] = Convert.ToInt32(Console.ReadLine());             //            }             //            for (int i = 0; i <10; i ++ )             //            {             //                Console.WriteLine("第{0}个球员的得分为{1}",i +1,a[i ]);             //            }             //            int max = 0; int min = 1000;             //            int max_no = 0; int min_no = 0;             //            for (int i = 0; i < 10;i ++ )             //            {             //                if (a[i]>max )             //               {             //                   max = a[i];             //                   max_no = i+1;             //               }             //                if (a[i]<min )             //                {             //                    min = a [i];             //                    min_no = i + 1;             //                }

            //            }             //            Console.Write("最高分为第{0}个球员的{1}分,最低分为第{2}个球员的{3}分", max_no, max, min_no, min);             //double  sum = 0;             //            for (int i =0;i <10;i ++)             //{             //                sum =sum +a [i ];             //}             //            Console.WriteLine("平均得分为"+sum /10);             //教练打分

教练打分

标签:

原文地址:http://www.cnblogs.com/naqiang/p/5490961.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!