数组的遍历和字符串的操做

数组的遍历 遍历数组有三种循环方式es6 for循环 int i = 0; int[] scores = { 12, 16, 2, 6, 7, 23, 7, 4, 7 }; Console.WriteLine("for循环遍历数组"); for(i = 0; i < scores.Length; i++) { Console.WriteLine(scores[i]); } while循环
相关文章
相关标签/搜索