Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int a[];
- max1 = 0;
- max2 = 0;
- for (int i = 0; i < n; ++i)
- if (a[i] > max1) {
- max2 = max1;
- max1 = a[i];
- continue;
- }
- if (a[i] > max2)
- max2 = a[i];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement