You are on page 1of 1

Exercitiul 4

#include <iostream>
#include <cmath>

using namespace std;

int main()
{
int a,b, max;
cin>>a>>b;
max=(a+b+abs(a-b))/2;
cout<<max;
return 0;
}

You might also like