Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
for(i=1; i<=n; i++)
{
for (j=1; j<n; j++)
if(num[j+1] > num[j])
{
temp=num[j];
num[j] = num[j+1];
num[j+1] = temp;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.