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\n",&a,&b,&c);
  7. if(a>b){
  8. temp =a;
  9. a=c;
  10. b=temp;
  11. }
  12. if (a>c){
  13. temp =a;
  14. a=c;
  15. c=temp;
  16. }
  17. if (b>c){
  18. temp =b;
  19. b=c;
  20. c=temp;
  21.  
  22. }
  23. printf ("%d,%d,%d",a,b,c);
  24. return 0;
  25. }
  26.  
Success #stdin #stdout 0s 5320KB
stdin
12 23 56
stdout
12,23,56