1. while 同 C++
2. for 同 C++
3. foreach,注意数组的定义
int[] fibarray = new int[] { 0, 1, 1, 2, 3, 5, 8, 13 }; foreach (int element in fibarray) { System.Console.WriteLine(element); }