출력과 변수·1 / 22
첫 프로그램과 cout
C++은 cout으로 출력합니다. << 기호로 출력할 값을 이어 붙이고,
endl은 줄바꿈입니다.
#include <iostream>
using namespace std;
int main() {
cout << "Hello, World!" << endl;
return 0;
}using namespace std;가 있어야 cout을 짧게 쓸 수 있습니다.
할 일
Hello, World! 를 출력하세요
막혔나요?
코드 에디터