#include<iostream> using namespace std; int main() {void sort(int x,int y,int z); int x,y,z; cin>>x>>y>>z; sort(x,y,z); return 0; } void sort(int x,int y,int z) {int temp; if(x>y) {temp=x; x=y; y=temp; } if(x<y) cout<<z<<','<<x<<','<<y<<endl; else if(z<x) cout<<x<<','<<z<<','<<y<<','<<endl; else if(z<y) cout<<x<<','<<z<<','<<y<<','<<endl; else cout<<x<<','<<y<<','<<z<<','<<endl; } #include<iostream> using namespace std; int main() {int a,b,c,temp; cin>>a>>b>>c; int &ra=a; int &rb=b; int &rc=c; if(ra>rb) {temp=ra; ra=rb; rb=temp; } if(ra>rc) {temp=ra; ra=rc; rc=temp; } if(rb>rc) {temp=rb; rb=rc; rc=temp; } cout<<a<<','<<b<<','<<c<<','<<endl; return 0; }