일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 | 30 |
Tags
- LeetCode
- SQL
- Python
- 파이썬
- gcp
- heap
- Python3
- Microsoft
- 릿코드
- nlp
- 생성형AI
- 알고리즘
- sql코테
- dfs
- two-pointer
- GenAI
- GenerativeAI
- 슬라이딩윈도우
- 투포인터
- 코드업
- 파이썬기초100제
- 자연어처리
- 파이썬알고리즘
- 니트코드
- 리트코드
- stratascratch
- codeup
- tree
- medium
- slidingwindow
Archives
- Today
- Total
Tech for good
[C#] 콘솔에 출력하기 - Console.Write()과 Console.WriteLine()차이 본문
IT/Computer Science
[C#] 콘솔에 출력하기 - Console.Write()과 Console.WriteLine()차이
Diana Kang 2021. 10. 29. 17:48
# Console.Write
Console.Write("Congratulations!");
Console.Write(" ");
Console.Write("You wrote your first lines of code!");
Congratulations! You wrote your first lines of code!
# Console.WriteLine()
Console.WriteLine("Congratulations!");
Console.WriteLine(" ");
Console.WriteLine("You wrote your first lines of code!");
Congratulations!
You wrote your first lines of code!
Write()과 WriteLine()함수는 괄호 한에 있는 문자열을 화면에 출력해준다.
하지만 WriteLine은 문자열 뒤에 뉴라인(NewLine)문자를 추가한다.
'IT > Computer Science' 카테고리의 다른 글
[Blazor & C# 핸즈온] Blazor 웹 앱에서 데이터와 상호작용 (4) | 2021.12.21 |
---|---|
[Flask] Flask 기초 - API 만들기 (0) | 2021.11.06 |
Terminal에서 code . 으로 vscode 열기 오류날 때 (0) | 2021.10.10 |
[VS Code] 자주 쓰는 VS Code 단축키 (0) | 2021.10.10 |
[Flutter] failed to launch ios simulator error emulator didn't connect within 60 seconds vs code (0) | 2021.08.15 |