运行 ❯
获取您自己的 C# 服务器
×
更改方向
更改主题,深色/浅色
前往 Spaces
using System; namespace MyApplication { class Program { static void Main(string[] args) { int[,] numbers = { {1, 4, 2}, {3, 6, 8} }; for (int i = 0; i < numbers.GetLength(0); i++) { for (int j = 0; j < numbers.GetLength(1); j++) { Console.WriteLine(numbers[i, j]); } } } } }
1
4
2
3
6
8