Advertisement
Josif_tepe

Untitled

Oct 22nd, 2021
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.31 KB | None | 0 0
  1. #include <iostream>
  2. #include <algorithm> // biblioteka koja ni ovozmozuva da ja koristime funkcijata sort
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7.     int niza[4];
  8.     for(int i = 0; i < 4; i++) {
  9.         cin >> niza[i];
  10.     }
  11.     sort(niza, niza + 4);
  12.    
  13.     cout << niza[0] * niza[2] << endl;
  14.     return 0;
  15. }
  16.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement