C#/프로그래밍 기초
C# 기초 - 01. 출력&입력
tita
2024. 5. 26. 14:46
C#의 가장 기본적인 출력 방법은 Console 클래스의 메서드를 사용합니다.
메서드 이름 | 설명 |
Console.WriteLine() | 출력 후 개행됩니다. |
Console.Write() | 출력 후 개행되지 않습니다. |
Console.ReadLine() | 사용자로부터 한 줄의 문자열을 입력 받습니다. |
예제)
static void Main(stringp[ args)
{
Console.WriteLine("Hello C# Class");
Console.Write("Just Write");
Console.ReadLine();
}