You are viewing a single comment's thread. Return to all comments →
using namespace std;
int main() { // Complete the program string a,b; cin >> a >> b; cout << a.length() << " " << b.length() << endl;
string temp1 = a; string temp2 = b; temp1[0] = b[0]; temp2[0] = a[0]; string temp = a + b; char arr[a.length() + b.length()]; for(int i =0; i < sizeof(arr); i++) { arr[i] = temp[i]; cout << arr[i]; } cout << " \n" << temp1 << " " << temp2; 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 →
include
include
using namespace std;
int main() { // Complete the program string a,b; cin >> a >> b; cout << a.length() << " " << b.length() << endl;
}