/* File: ex1.cpp/ Author: Matthew Small Description: An in-cl;ass solution to the first programming exercise */ #include using namespace std; int main() { int max, min, x, i; /* initialize max and min to first integer input */ cin >> x; min = max = x; /* loop through other 4 inputs*/ for(i=0; i<4; i++) { cin >> x; /*check if x is less than min */ if(x < min) min = x; /*check if x is greater than max */ else if(x > max) max = x; } cout<