You are viewing a single comment's thread. Return to all comments →
#include <iostream> #include <string> using namespace std; int main() { string s1; string s2; cin>>s1>>s2; cout<<s1.size()<<" "<<s2.size()<<endl<<s1<<s2<<"\n"; cout<<s2[0]; for(int i=1; i<s1.size(); i++) cout<<s1[i]; cout<<" "<<s1[0]; for(int i=1; i<s2.size(); i++) cout<<s2[i]; 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 →
Code Is Here