Say Hello World HackerRank C++ solution
One of the baby steps to getting into programming is to learn how to print the Hello world statement in the first run. You’ll learn how to get the ‘Say Hello, World HackerRank C++ solution’ problem done, with a simple easy step.
Problem statement
This is a simple challenge to help you practice printing to stdout. You may also want to complete…
You can check out the complete problem on Printing Hello world (opens in a new tab) at HackerRank.
Also Read: Variable sized Array problem on HackerRank solved
Solution
We’ll simply use a standard Cout function to print the ‘Hello World’, you can use ‘Printf’ either to print the output.
#include <iostream>
#include <cstdio>
using namespace std;
int main() {
cout << "Hello, World!";
return 0;
}