백준 C# - 10798
2차원 배열 알아보러가기 C# - 2차원 배열 1. 초기화 및 값 할당 방법 int [,] = new int [3,3]; 01 초기화 구문을 사용하여 값 할당 int[,] array = new int[,]{ { 1 , 2 , 3 } , { 4 , 5 , 6 } , { 7 , 8 , 9 } }; 02 인덱스를 사용하여 값 할당 array[0,1] = 1; array[0,2] = 2; a code-piggy.tistory.com using System; using System.Collections.Generic; namespace baek2 { class Program { static void Main(string[] args) { string[,] array = new string[5,15]; for (i..
2023. 5. 18.
백준 C# - 2566
2차원 배열 알아보러 가기 C# - 2차원 배열 1. 초기화 및 값 할당 방법 int [,] = new int [3,3]; 01 초기화 구문을 사용하여 값 할당 int[,] array = new int[,]{ { 1 , 2 , 3 } , { 4 , 5 , 6 } , { 7 , 8 , 9 } }; 02 인덱스를 사용하여 값 할당 array[0,1] = 1; array[0,2] = 2; a code-piggy.tistory.com using System; using System.Collections.Generic; namespace baek2 { class Program { static void Main(string[] args) { int max = 0; int[,] array = new int[9, 9]..
2023. 5. 17.
백준 C# - 2738
2차원 배열 알아보러 가기 C# - 2차원 배열 1. 초기화 및 값 할당 방법 int [,] = new int [3,3]; 01 초기화 구문을 사용하여 값 할당 int[,] array = new int[,]{ { 1 , 2 , 3 } , { 4 , 5 , 6 } , { 7 , 8 , 9 } }; 02 인덱스를 사용하여 값 할당 array[0,1] = 1; array[0,2] = 2; a code-piggy.tistory.com using System; using System.Collections.Generic; using System.Text; namespace baek2 { class Program { static void Main(string[] args) { string s = Console.Rea..
2023. 5. 15.