Files
cs420/examples/bar.c
Jeehoon Kang b929dc334d Initial commit
2020-03-17 17:31:16 +09:00

7 lines
172 B
C

int bar(int x, int y, int z){
int arith_mean = (x + y + z) / 3;
int ugly_mean = (((x + y) / 2) * 2 + z) / 3;
if (x == y) { return y; }
else { return z; }
}