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 s[21],s1[21],aux[21];
- cin>>s>>s1;
- if(strcmp(s,s1)>0)
- {
- strcpy(aux,s);
- strcpy(s,s1);
- strcpy(s1,aux);
- }
- cout<<s<<" "<<s1;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement