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