Strings

  • + 0 comments

    include

    using namespace std;

    int main(){ string a,b; cin >> a >> b; cout << a.size() << " " << b.size() << endl; cout << a+b << endl; swap(a[0], b[0]); cout << a << " " << b << endl; return 0; }