#include using namespace std; void order(int & x, int & y) { if (x < y) return; int temp = x; x = y; y = temp; } int main() { int a, b, c, d, e, f; cout << "Enter the varibales' values: "; cin >> a >> b >> c >> d >> e >> f; order(a, b); order(b, c); order(c, d); order(d, e); order(e, f); order(a, b); order(b, c); order(c, d); order(d, e); order(a, b); order(b, c); order(c, d); order(a, b); order(b, c); order(a, b); cout << a << " " << b << " " << c << " " << d << " " << e << " " << f << "\n"; }