Challenge: Hello, World!
Completed
Write a program that prints exactly Hello, World!
Input
None.
Output
One line: Hello, World!
Example
Output
Hello, World!
Editor
C++
Hints
Use cout << "...";
Check the capital H and W, the comma and the exclamation mark.
Solution explanation
cout << sends the text between the quotes to the screen.
Show solution
#include <iostream>
using namespace std;
int main() {
cout << "Hello, World!" << endl;
return 0;
} Output
Answer
You can practice without logging in. Log in to save completion.
Save your progress
You're practising as a guest, so your progress won't be saved.
- Track every lab you complete
- Earn verifiable lab certificates
- See your progress in every module