Skip to content

Instantly share code, notes, and snippets.

@shameemreza
Created June 5, 2018 09:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shameemreza/ac2a14b6931ddd9ee0fdb3b55285c1fe to your computer and use it in GitHub Desktop.
Save shameemreza/ac2a14b6931ddd9ee0fdb3b55285c1fe to your computer and use it in GitHub Desktop.
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