Menu Close

[FTC] Hello World C++ [FTC]

HELLO WORLD in C++

Help raji to print “The Input” from the user end and it is the first program to raji.
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