You are viewing a single comment's thread. Return to all comments →
#include <iostream> #include <string> using namespace std; int main() { string str1; string str2; string str5 = " "; cin>>str1; cin>>str2; int n1 = str1.length(); int n2 = str2.length(); string str3 = str1 + str2; string str6 = str1; string str7 = str2; str6[0] = str2[0]; str7[0] = str1[0]; string str4 = str6 + str5 + str7; cout<<n1<<" "<<n2<<endl; cout<<str3<<endl; cout<<str4<<endl; return 0; }
Seems like cookies are disabled on this browser, please enable them to open this website
Strings
You are viewing a single comment's thread. Return to all comments →