Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main()
- {
- int denovi[30], lisja[30];
- for(int i = 0; i < 30; i++)
- {
- cin >> denovi[i] >> lisja[i];
- }
- int maks = -2000000000;
- int den = 0;
- for(int i = 0; i < 30; i++)
- {
- if (maks < lisja[i])
- {
- maks = lisja[i];
- den = denovi[i];
- }
- }
- cout << den << " " << "noemvri" << endl;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement