#include <iostream>
using namespace std;
int main()
{
int x,y,z;
cin>>x>>y>>z;
if (y<x && x<z)
cout<<y<<" "<<x<<" "<<z;
else if (y<z && z<x)
cout<<y<<" "<<z<<" "<<x;
else if (x<y && y<z)
cout<<x<<" "<<y<<" "<<z;
else if (x<z && z<y)
cout<<x<<" "<<z<<" "<<y;
else if (z<x && x<y)
cout<<z<<" "<<x<<" "<<y;
else
cout<<z<<" "<<y<<" "<<x;
}
Am facut cat mai simplu.
Ordonarile folosind "switch" la 3 variabile nu se fac decat cu auxiliar.