Write a C++ program to display “Hello, World!” on the screen.
C++ Code:
Example 1:
1 2 3 4 5 6 7 8 9 | #include <iostream> using namespace std; int main() { cout << "Hello, World!"; return 0; } |
Example 2:
1 2 3 4 5 6 7 8 | #include <iostream> int main() { std::cout << "Hello, World!"; return 0; } |
Output:
[…] C++ Program to Print “Hello World!” […]