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>>y;
- if(strlen(x)>strlen(y))
- {
- cout<<y<<endl;
- cout<<x;
- }
- else
- {
- cout<<x<<endl;
- cout<<y;
- }
- }
Add Comment
Please, Sign In to add comment