#include using namespace std; void swapif(int & x, int & y) { if (x > y) { const int t = x; x = y; y = t; } } int main() { int a = 95; int b = 16; int c = 11; int d = 9; int e = 93; swapif(a, b); swapif(b, c); swapif(c, d); swapif(d, e); swapif(a, b); swapif(b, c); swapif(c, d); swapif(a, b); swapif(b, c); swapif(a, b); cout << a << " " << b << " " << c << " " << d << " " << e << "\n"; }