C++ Hello World
Problemβ
Let's begin your journey towards coding with the very first question of the coding world. Your task is to write code that prints Hello World.
Examples:β
Example 1:
Input:
No Input
Output:
Hello World
Your task:β
In the function helloWorld(), output a line "Hello World" (without quotes).
- Expected Time Complexity:
- Expected Auxiliary Space:
Solutionβ
C++β
void helloWorld() {
cout<<"Hello World"<<endl;
}
- Time Complexity:
- Auxiliary Space: