일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- Redshift
- string
- c#
- hive
- PostgreSQL
- gas
- 파이썬
- list
- Java
- Google Spreadsheet
- Github
- Mac
- PySpark
- array
- SQL
- PANDAS
- numpy
- google apps script
- Apache
- Google Excel
- math
- Kotlin
- Python
- dataframe
- Excel
- matplotlib
- GIT
- Tkinter
- django
- Today
- Total
목록분류 전체보기 (832)
달나라 노트
break 키워드는 실행되면 break가 속해있는 for loop, while loop, switch case 코드의 실행을 중단합니다. continue 키워드는 반복문의 한 단계를 한 번 건너뜁니다. using System; class MyProgram { static void Main() { for (int i = 1; i
while loop는 아래와 같이 사용할 수 있습니다. while (condition) { 실행할 코드 } while loop는 condition이 true인 경우에 코드를 실행합니다. conditoin이 false가 되면 while loop를 빠져나옵니다. using System; class MyProgram { static void Main() { int i = 1; while (i
C#에서 for loop는 아래처럼 사용할 수 있습니다. for (int i=1; i 먼저 for loop에서 각 단계마다 사용될 인덱스를 선언하고 1로 초기화해줍니다. i for loop가 진행될 조건입니다. 이 조건이 true인 경우 for loop의 코드를 실행합니다. i=i+1; -> for loop가 한번 실행된 후 인덱스인 i값을 1 증가시켜줍니다. 아래는 for loop를 사용한 예시입니다. using System; class MyProgram { static void Main() { for (int i = 0; i < 5; i++) { Console.WriteLine(i); } } } -- Result 0 1 2 3 4 아래 예시는 for loop, if, break를 조합하여 사용한 예시..
switch 구문은 아래와 같이 사용할 수 있습니다. switch (main_value) { case value1: main_value = value1 일때 실행할 부분 case value2: main_value = value2 일때 실행할 부분 ... default: main_value랑 동일한 부분이 하나도 없을 때 실행할 부분 } using System; class MyProgram { static void Main() { int test1 = 5; switch (test1) { case 1: Console.WriteLine("test1 = 1"); break; case 2: Console.WriteLine("test1 = 2"); break; case 3: Console.WriteLine("tes..