// Puts two numbers into increasing order // Mikhail Nesterenko // 9/16/99 #include using namespace std; int main() { // read in the numbers cout << "Please enter two numbers: "; int n1, n2; cin >> n1 >> n2; // put the numbers into increasing order if (n1 > n2) { // swap n1 and n2 int tn = n1; n1 = n2; n2 = tn; } // print the numbers out cout << "Numbers are in order: " << n1 << " " << n2 << '\n'; }