国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 學院 > 開發(fā)設(shè)計 > 正文

.net 第二章上機練習1

2019-11-11 04:52:02
字體:
供稿:網(wǎng)友
using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;namespace JiFen{    class PRogram    {        static void Main(string[] args)        {            int[] points = new int[5];               //歷年積分數(shù)組            int[] newPoints = new int[5];            //新年積分數(shù)組            Console.WriteLine("請輸入五位會員的積分:");            for (int i = 0; i < points.Length; i++)            {                Console.WriteLine("第" + (i + 1) + "位會員積分");                points[i] =Convert.ToInt32(Console.ReadLine());            }            //數(shù)組復(fù)制            for (int i = 0; i < points.Length; i++)            {                newPoints[i] = points[i];                newPoints[i] = newPoints[i] + 500;    //贈送500積分            }            Console.WriteLine("/n序號  歷史積分  新年積分");            for (int i = 1; i < points.Length; i++)            {                Console.WriteLine("/n" + (i + 1) + "/t" + points[i] + "/t" + newPoints[i]);            }                Console.ReadLine();        }    }}
上一篇:poj 3186

下一篇:P1601 A+B Problem(高精)

發(fā)表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發(fā)表
主站蜘蛛池模板: 宁晋县| 孟津县| 陆良县| 上杭县| 浑源县| 泊头市| 江达县| 乌恰县| 怀来县| 安乡县| 剑川县| 东阿县| 东明县| 宁陵县| 赣州市| 五大连池市| 正宁县| 图们市| 巴彦淖尔市| 开化县| 射洪县| 静安区| 萨嘎县| 万安县| 南木林县| 广水市| 改则县| 鹤庆县| 石家庄市| 安岳县| 合水县| 葵青区| 遂平县| 师宗县| 宁阳县| 勃利县| 西宁市| 永和县| 祁门县| 琼海市| 清远市|