/**/ #include #include int main(void) { int x,y,z,temp; printf("Please enter 3 numbers separated by spaces > "); scanf("%d %d %d", &x, &y, &z); if (x >= y) { temp = x; x = y; y = temp; } if (x >= z) { temp = x; x = z; z = temp; } if (y >= z) { x = z; } else { x = y; } printf("%d is the median\n", x); return(0); }