daily pastebin goal
52%
SHARE
TWEET

Untitled

a guest Mar 19th, 2019 48 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <busca_sequencial.h>
  2.  
  3. int busca_sequencial(int vet[], int tam, int valor){
  4.  
  5.     for (int i = 0; i < tam; i++){
  6.         if (vet[i] == valor){
  7.             return i;
  8.         }
  9.     }
  10.     return -1;
  11. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top