Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <algorithm>
- using namespace std;
- int main()
- {
- int niza[4];
- for(int i = 0; i < 4; i += 1) {
- cin >> niza[i];
- }
- sort(niza, niza + 4);
- cout << niza[0] * niza[2] << endl;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement