//Read 3 numbers, sort with function, then print #include using namespace std; void swap(int& first, int& second) //passed by reference { int temp; temp = first; //temp is a local variable first = second; //first and second are references second = temp; // to the variables that were passed } //swap main() //execution always starts in main { int num1, num2, num3; cout<<"Enter the first number:"; cin>>num1; cout<<"Enter the second number:"; cin>>num2; cout<<"Enter the third number:"; cin>>num3; if (num1>num2) //swap the two numbers swap(num1, num2); //pass num1 and num2 by reference if (num2>num3) //swap the two numbers swap(num2, num3); //pass num2 and num3 by reference if (num1>num2) //swap the two numbers swap(num1, num2); //pass num1 and num2 by reference cout<<"In order: "<