Answers for "Sorting number excluding elements in highest to lowest"

C
1

Sorting number excluding elements in highest to lowest

for (x=1;x<=score;x++){
  
  	for(j=x+1;j<=score;++j){
  		if(elem[x]<elem[j]){
  			a=elem[x];
  			elem[x]=elem[j];
  			elem[j]=a;
		  }
	  }
  
  printf("Player #%d: ",x);
  
  printf("%d\n", elem[x]);
    
  }
Posted by: Guest on March-11-2022

Code answers related to "Sorting number excluding elements in highest to lowest"

Code answers related to "C"

Browse Popular Code Answers by Language