Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int v[1000];
- void ordonare(int v[1000], int n)
- {
- int i, j, aux;
- for(i=1;i<n;i++)
- for(j=i+1;j<=n;j++)
- if(v[i]>v[j]){
- aux=v[i];
- v[i]=v[j];
- v[j]=aux;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement