Advertisement
Josif_tepe

Untitled

Feb 3rd, 2024
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. #include <iostream>
  2. #include <algorithm>
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7. int niza[4];
  8. for(int i = 0; i < 4; i += 1) {
  9. cin >> niza[i];
  10. }
  11.  
  12. sort(niza, niza + 4);
  13.  
  14. cout << niza[0] * niza[2] << endl;
  15. return 0;
  16. }
  17.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement