int Mean(int a, int b) { float n; n=(a+b)/2; if(n>=0)n=floor(n); else n=ceil(n); return n; }
int main() { int a, b; scanf(“%d%d”, &a, &b); printf(“%d\n”, Mean(a, b)); return 0; }
include
include
include
int Mean(int a, int b) {
float n;
n=(a+b)/2;
if(n>=0)n=floor(n);
else n=ceil(n);
return n;
}
int main() {
int a, b;
scanf(“%d%d”, &a, &b);
printf(“%d\n”, Mean(a, b));
return 0;
}