CONCATENATE TWO STRINGS

Description:

Write a c++ program for Concatenate Two Strings without using strcat() function Test Case 1 Input (stdin) Kaveri river Expected Output Kaveririver Test Case 2 Input (stdin) Hello World Expected Output HelloWorld

Program :

#include <iostream>

using namespace std;

 int main()

{

string s1, s2, result;

 getline (cin, s1);

 getline (cin, s2);

 result = s1 + s2;

cout << result;

return 0;

}