2차원배열(대건)

강kang·2024년 12월 30일

using System;
using System.Runtime.CompilerServices;
using System.Runtime.ExceptionServices;
using System.Security.Authentication;
using static System.Console;

namespace Hello
{
class MainApp
{
//프로그램 실행이 시작되는 곳
static void Main(string[] args)
{
int input1 = Convert.ToInt32(Console.ReadLine());
int[,] arr = new int[input1, input1];
for(int i = 0; i < input1; i++) // 0 1
{
for(int j = 0; j < input1; j++) // 0 1
{
Console.Write(arr[i, j]);
}
}
}
}
}

profile
코딩

0개의 댓글