class ForEachTest
{
    static void Main(string[] args)
    {
        int[] fearray = new int[] { 0, 1, 2, 3 };
        foreach (int i in fearray)
        {
            System.Console.WriteLine(i);
        }
    }
}


输出:

0

1

2

3

 

相关文章:

  • 2022-12-23
  • 2021-12-21
  • 2021-07-30
  • 2022-12-23
  • 2021-06-16
  • 2021-09-14
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-10-10
  • 2021-08-24
  • 2021-10-21
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案