foreach-loop1 [C#] foreach loop: foreach 반복문 using System; namespace MyFirstProgram { internal class Program { static void Main(string[] args) // main method { // foreach loop: String[] cars = { "BMW", "Mustang", "Corvette" }; foreach (String car in cars) { Console.WriteLine(car); } } } } 2023. 3. 12. 이전 1 다음 728x90