Foreach문
int[] Fibonacci = new int[] { 0, 1, 1, 2, 3, 5, 8, 13};
foreach (int element in Fibonacci)
{
Console.Write(element + ",");
}
Console.Write("end");
// 0,1,1,2,3,5,8,13,end
2중 Foreach 문
int[,] numbers2D = new int[3,2] {{1.2},{3,4},{5,6}};
foreach(int i in nuber2D)
{
Console.Write("{0}#{1}::", "값", i);
}
// 값#1::값#2,값#3::값#4::값#5::값#6
점프문은 break, continuem goto 3가지가 있음.