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