fork(1) download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. // your code goes here
  5. int a,b,c,temp;
  6. scanf ("%d%d%d",&a,&b,&c);
  7. if (a>c){
  8. temp =a;
  9. a=c;
  10. c=temp;
  11. }
  12. if (a>b){
  13. temp=a;
  14. a=b;
  15. b=temp;
  16. }
  17. if(b>c){
  18. temp =b;
  19. b=c;
  20. c=temp;
  21. }
  22. printf ("%d,%d,%d",a,b,c);
  23. return 0;
  24. }
  25.  
Success #stdin #stdout 0s 5320KB
stdin
32 12 23
stdout
12,23,32