Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- Author: Kanan Asgarli
- https://www.e-olymp.com/az/problems/108
- */
- #include <iostream>
- #include <algorithm>
- using namespace std;
- int a[3];
- int main()
- {
- cin>>a[0]>>a[1]>>a[2];
- sort(a,a+3);
- cout<<a[1]<<endl;
- return 0;
- }
Add Comment
Please, Sign In to add comment