📄 program.cs
字号:
using System;
using System.Collections.Generic;
using System.Text;
namespace Example4_8 {
class Program {
static void Main(string[] args) {
int[] myArray = new int[5] { 12, 9, 35, 68, 51 };
int a = 0;
//创建一个while循环,只要a小于5,就会执行。
while (a < 5) {
Console.WriteLine("myArray[{0}]的值为{1}。", a, myArray[a]);
a++;
}
Console.ReadLine();
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -