Strings

  • + 0 comments

    include

    include

    using namespace std;

    int main() { // Complete the program // Declare Variable string a, b; // For Input cin >> a >> b; // Output.. cout << a.size() << " " << b.size() << endl; cout << a + b << endl;

    char first_char_a = a[0];
    char first_char_b = b[0];
    
    a[0] = first_char_b;
    b[0] = first_char_a;
    // Again Output
    cout << a << " " << b << endl;
    
    return 0;
    

    }