Transcrierea in C++
#include <iostream>
using namespace std;
int main()
{
int a, b, c;
cin >> a >> b >> c;
if ((a + b) / 2 == c)
{
cout << "CORECT";
}
else if ((a + c) / 2 == b)
{
cout << "CORECT";
}
if ((b + c) / 2 == a)
{
cout << "CORECT";
}
else
{
cout << "INCORECT";
}
return 0;
}