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
Input
(none)
Output
Hello, C++
Hint
- #include <iostream> gives you std::cout.
- 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.