You are viewing a single comment's thread. Return to all comments →
//my solution
using namespace std;
int main() { string a,b; cin>>a; cin>>b;
cout<<a.size()<<" "<<b.size()<<"\n"; cout<<a+b<<"\n"; char ca1 = b[0]; char cb1 = a[0]; a[0] = ca1; b[0] = cb1; cout<<a<<" "<<b; 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 →
//my solution
include
using namespace std;
int main() { string a,b; cin>>a; cin>>b;
}