Write a program to concatenate two strings.
EasyProblem Statement
Write a program to concatenate two strings.
Sample Input
str1 = "Hello", str2 = " World"
Sample Output
Concatenated String = Hello World
Limits
Time: 2s · Memory: 256 MB
Code Editor
00:00
#include <iostream>
#include <string>
int main() {
std::string str1 = "Hello";
std::string str2 = " World";
// Logic to concatenate strings
return 0;
}
Input
str1 = "Hello", str2 = " World"
Expected Output
Concatenated String = Hello World