Untitled
raw download clone
TEXT
views 8
,
size 240 b
int ordonare(int v[], int n, int s, int d)
{
    if(n<0) 
        return 0;
    else
    {
        for(int i=s; i<d; i++)
            if(v[i]>v[i+1])
                swap(v[i],v[i+1]);
    }

    return ordonare(v, n-1, s, d);
}
close fullscreen
Login or Register to edit or fork this paste. It's free.