Programming Language/이것이 C# 연습문제 풀이
이것이 C# 12장 연습문제 풀이
dbxxrud
2019. 5. 15. 17:40
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
using System;
using static System.Console;
using System.Collections;
namespace AS
{
class As
{
static void Main(string[] args)
{
int[] arr = new int[10];
try
{
for (int i = 0; i < 10; ++i)
arr[i] = i;
for (int i = 0; i < 11; ++i)
WriteLine(arr[i]);
}
catch (Exception e)
{
WriteLine("예외발생, {0}", e.Message);
}
WriteLine("종료");
}
}
}
|