Say “Hello, World!” With C++ – HackerRank Solution

Say “Hello, World!” With C++ – HackerRank Solution

Objective :

This is a simple challenge to help you practice printing to stdout.

Question :

We’re starting out by printing the most famous computing phrase of all time! In the editor below, use either printf or cout to print the string  Hello, World! to stdout.

Input Format :

You do not need to read any input in this challenge.

Output Format :

Print Hello, World! to stdout.

Sample Output :

Hello, World!

Solution :

#include <iostream>
#include <cstdio>
using namespace std;

int main() {
    cout << "Hello, World!" << endl;
    return 0;
}

 37 total views,  1 views today

Post Disclaimer

the above hole problem statement is given by hackerrank.com but the solution is generated by the SLTECHACADEMY authority if any of the query regarding this post or website fill the following contact form thank you.

Leave a Reply

Your email address will not be published. Required fields are marked *