//Sort 2 numbers #include using namespace std; void swap(int& n1, int& n2) //receive n1 and n2 by reference, exchange { int temp; temp=n1; n1=n2; n2=temp; } //swap void main() //input 2 numbers, sort, print { int first, second; cout<<"enter a number "; cin>>first; cout<<"enter a number "; cin>>second; if (first>second) swap(first, second); cout<<"In order: "<