#include using namespace std; void swapif(int x, int y) { cout << "in swapif, x = " << x << ", y = " << y << "\n"; if (x > y) { cout << "about to swap\n"; int temp = x; x = y; y = temp; cout << "after the swap x = " << x << ", y = " << y << "\n"; } } int main() { int a, b; cout << "Enter first number: "; cin >> a; cout << "Enter second number: "; cin >> b; swapif(a, b); cout << "In order, they are " << a << " and " << b << "\n"; }