Content deleted Content added
Undid revision 1018915640 by 203.192.253.9 (talk) |
|||
Line 36:
<syntaxhighlight lang="c">
int sort (int x[ ], int n)
{
int
/*This function sorts array x in ascending order */
{
} ▼
im1=i-1;
for (j=1; j< =im1; j++)
if (x[i] < x[j])
{
Save = x[i];
x[i] = x[j];
x[j] = save;
}
}
return 0;
</syntaxhighlight>
|