using System;
using System.IO;
using Newtonsoft.Json;
using System.Collections.Generic;
using System.Threading.Tasks;
using System.Threading;
namespace Helloworld1
{
class App
{
public App()
{
int[] arr = new int[3];
arr[0] = 5;
arr[1] = 3;
arr[2] = 6;
int temp = arr[1];
arr[1] = arr[0];
arr[0] = temp;
foreach(int num in arr)
{
Console.WriteLine(num);
}
}
}
}
'c# > 수업 내용' 카테고리의 다른 글
자료구조 순서도 정의 (0) | 2021.09.15 |
---|---|
자료구조 Linked List 연결리스트(Node 연습 ) (0) | 2021.09.15 |
동적배열 (Dynamic Array)그리기 연습 (0) | 2021.09.14 |
자료구조(배열) (0) | 2021.09.14 |
자료구조 (0) | 2021.09.14 |