#include #include //This program is one way to find the mid, min, and max of three numbers int main() { int a, b, c; int min, mid, max; printf("Enter three integers, separated by spaces:"); scanf("%d %d %d", &numorders); if(a < b) { if(a < c) { //a is min if(b>c) { //b is max; c is mid } else { //c is max; b is mid } } else { //c is min, a is mid, b is max } } else { if(b < c) { //b is min ... } else { //c is min ... } } system("pause"); }