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;

 304 total views,  1 views today

Leave a Reply

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