Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /// Se dau doua cuvinte, sa se afiseze unul sub altul in ordinea crescatoare a lungimii
- #include<iostream>
- #include<cstring>
- using namespace std;
- char x[256], y[256];
- int main()
- {
- cin >> x >> y;
- strlen(x) > strlen(y) ? cout << x << '\n' << y : cout << y << '\n' << x;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement