Strings

  • + 0 comments
    // Complete the program
        string a , b , c;
        cin>>a>>b;
        cout<<a.length()<<" "<<b.length()<<endl;
        cout<<a+b<<endl;
        
        swap(a[0],b[0]);
        cout<<a<<" "<<b<<endl;
        return 0;
    }