Skip to content

Instantly share code, notes, and snippets.

@Titory0
Created January 17, 2023 11:59
Show Gist options
  • Save Titory0/46f434f0b7085e82753e55f4e37ea351 to your computer and use it in GitHub Desktop.
Save Titory0/46f434f0b7085e82753e55f4e37ea351 to your computer and use it in GitHub Desktop.
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