Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<iostream>
- #include<cstring>
- using namespace std;
- char x[100], y[100];
- int main()
- {
- cin>>x;
- cin>>y;
- if(strlen(x)<=strlen(y))
- {
- cout<<x<<" ";
- cout<<y;
- }
- else
- {
- cout<<y<<" ";
- cout<<x;
- }
- return 0;
- }
Add Comment
Please, Sign In to add comment