Please Login in order to post a comment
using namespace std;
int main() { string s1,s2,s3; cin>>s1>>s2; cout<
return 0;
}
int main() { // Complete the program string a; cin>>a; string b; cin>>b; string c; c=a+b; cout<
int main() {
string str1, str2; cin>>str1; cin >> str2; cout << str1.length()<< " " << str2.length()<<endl; cout <<str1+str2<< endl; char ch = str1[0]; str1[0]= str2[0]; str2[0]= ch; cout << str1 << " " << str2; return 0;
int main() { // Complete the program string a,b; cin >> a >> b; cout << a.length() << " " << b.length() << endl;
string temp1 = a; string temp2 = b; temp1[0] = b[0]; temp2[0] = a[0]; string temp = a + b; char arr[a.length() + b.length()]; for(int i =0; i < sizeof(arr); i++) { arr[i] = temp[i]; cout << arr[i]; } cout << " \n" << temp1 << " " << temp2; return 0;
#include <iostream> #include <string> using namespace std; int main() { string a,b; getline(cin,a); getline(cin,b); cout<<a.length()<<" "; cout<<b.length()<<endl; cout<<a+b<<endl; int temp = a[0]; a[0] = b[0]; b[0] = temp; cout<<a<<" "<<b; return 0; }
Seems like cookies are disabled on this browser, please enable them to open this website
include
include
using namespace std;
int main() { string s1,s2,s3; cin>>s1>>s2; cout<
}
include
include
using namespace std;
int main() { // Complete the program string a; cin>>a; string b; cin>>b; string c; c=a+b; cout<
include
include
using namespace std;
int main() {
}
include
include
using namespace std;
int main() { // Complete the program string a,b; cin >> a >> b; cout << a.length() << " " << b.length() << endl;
}