#1. Hello World
#include < --- 필수 작성 // std + io /* std : standard io : input/output .h : 헤더파일 */ int main() //main 함수 { printf("Hello, World!\n"); //출력 /* Escape sequence - \n, \t ..... */ /n = 한줄 띄어 출력 /t = 4칸 띄어쓰기 출력 printf("10\n"); // 10출력 printf("%d\n", 10); //format specifier(conversion specifier) %d(정수형 : 1,2,3,4,5...), 10 의 값을 넣어줌 printf("%d\t %d %d %d %d\n", 1, 2, 3, 4, 5); return 0; //반환 }
2023. 4. 5.