Created
January 17, 2023 11:59
-
-
Save Titory0/46f434f0b7085e82753e55f4e37ea351 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static int[] ft_order_int_tab(int [] tab) | |
{ | |
int aconserver; | |
for(int i=0;i<(tab.Length);i++) | |
{ | |
int count=1; | |
foreach(int element in tab) | |
{ | |
if(count!=tab.Length) | |
{ | |
if(element >tab[count]) | |
{ | |
aconserver=tab[count]; | |
tab[count]=element; | |
tab[count-1]=aconserver; | |
} | |
} | |
count+=1; | |
} | |
} | |
return tab; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment