Menu Close

Hello World

HELLO WORLD in C++

Help raj to print “The Input” from the user end and it is the first program to raj.
Give the input as a String and refer sample input and output.

Input : Hello World

Output: Hello World
#include <iostream>
#include <string>
using namespace std;
int main()
{
  string a;
  getline(cin,a);
  cout<<a;

  return 0;
}

Input_1:
Hello World

Output:
Hello World

Input_2:
Hello Universe

Output:
Hello Universe



More Q