프로그래밍/C#

처음만드는 C# 기초 입출력

엘레멘탈키스 2015. 6. 22. 16:11

코드


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
29
// System : 숫자, 텍스트와 같은 데이터를 다룰 수 있는 기본적인 데이터 처리 클래스
// stdio와 비슷한 놈으로 보인다.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
 
namespace MyFirstCSharp
{
    class Program
    {
        // 네임스페이스 안에서 접근할 수 있도록. 정적 함수로. static
        static void Main(string[] args)
        {
            // 헬월드 출력
            Console.WriteLine("Hell World!");
 
            // 아규먼트 출력
            //Console.WriteLine("Hell, {0}!", arg[0]);
 
            // Test
            Console.WriteLine("{0}"10);
            Console.WriteLine("{0}"10.5);
            Console.WriteLine("{0}"'c');
            Console.WriteLine("{0}""String");
        }
    }
}
cs



결과



728x90
반응형