Open 3114537959 opened 7 months ago
int main(){ int x,y,z; int temp; scanf("%d %d %d",&x,&y,&z); if(x<y){ temp = x; x = y; y = temp; } if(x<z){ temp = x; x = z; z = temp; } if (y<z) { temp = y; y = z; z = temp; } printf("%d %d %d",x,y,z); return 0; }
include
int main(){ int x,y,z; int temp; scanf("%d %d %d",&x,&y,&z); if(x<y){ temp = x; x = y; y = temp; } if(x<z){ temp = x; x = z; z = temp; } if (y<z) { temp = y; y = z; z = temp; } printf("%d %d %d",x,y,z); return 0; }