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[25],s2[25];
- cin.get(s1,25);
- cin.get();
- cin.get(s2,25);
- cin.get();
- if(strcmp(s1,s2)<0)
- cout<<s1<<" "<<s2;
- else
- cout<<s2<<" "<<s1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement