Advertisement
Josif_tepe

Untitled

Jan 21st, 2022
617
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7.     int denovi[30], lisja[30];
  8.     for(int i = 0; i < 30; i++)
  9.     {
  10.         cin >> denovi[i] >> lisja[i];
  11.     }
  12.     int maks = -2000000000;
  13.     int den = 0;
  14.     for(int i = 0; i < 30; i++)
  15.     {
  16.         if (maks < lisja[i])
  17.         {
  18.             maks = lisja[i];
  19.             den = denovi[i];
  20.         }
  21.     }
  22.     cout << den << " " << "noemvri" << endl;
  23.     return 0;
  24. }
Advertisement
Advertisement
Advertisement
RAW Paste Data Copied
Advertisement