Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void inverte (int vetorx[20]){
- int i, aux;//aux guarda o vetor para que ele não seja subscrito no processo de inversão
- for (i=0;i<10;i++){
- aux = vetorb [19-i];
- vetorx[19-i] = vetorx[i];
- vetorx[i] = aux;
- }//chave for
- }//chave void
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement