using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Helloworld
{
class App
{
int[] arr;
//생성자
public App()
{
arr = new int[4];
arr[0] = 1;
arr[1] = 2;
arr[2] = 3;
arr[3] = 4;
int temp = arr[0];
arr[0] = arr[1];
arr[1] = arr[2];
arr[2] = arr[3];
arr[3] = temp;
for(int i = 0; i < 4; i++)
{
Console.WriteLine(arr[i]);
}
}
}
}
'c# > 복습 공부' 카테고리의 다른 글
세미평가 아이템 넣기 다시 시도(실패) (0) | 2021.09.14 |
---|---|
람다식 연습 5번 (Func) (0) | 2021.09.07 |
람다식 연습 4번 (Func) (0) | 2021.09.07 |
람다식 연습 3번 (Action) (0) | 2021.09.07 |
람다식 연습 2번(Action) (0) | 2021.09.07 |