C++ bootcamp · Lab 01

Hello, C++

easyOutput5 minLesson: C++ Output

Read the question, write C++ on the right, then Run or Check.

QuestionHint and solution stay closed until you open them

Print exactly this line, then a newline:

Hello, C++

The checker compares your output character for character.

Output. One line: Hello, C++

Constraints

  • Use std::cout.
  • End the line with \n.

Examples

Example 1 — No input — just print the line.
Input
(none)
Output
Hello, C++
Hint
  1. #include <iostream> gives you std::cout.
  2. std::cout << "Hello, C++\n";
Show correct code

Peek only after you have tried. You can still Check your own version.

#include <iostream>

int main() {
  std::cout << "Hello, C++\n";
  return 0;
}
main.cppC++17 · g++ · Ctrl + Enter runs
ResultIdle
Run to see output. Check grades the tests.