Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <string.h>
- using namespace std;
- int main()
- {
- char s1[20];
- char s2[20];
- char s3[20];
- cin.get(s1,20);
- cin.get();
- cin.get(s2,20);
- cin.get();
- cin.get(s3,20);
- cin.get();
- if (strlen(s1)< strlen(s2))
- strcat(s3,s1);
- else strcat(s3,s2);
- cout<<s1<<" "<<s2<<" "<<s3;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement