Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <busca_sequencial.h>
- int busca_sequencial(int vet[], int tam, int valor){
- for (int i = 0; i < tam; i++){
- if (vet[i] == valor){
- return i;
- }
- }
- return -1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement