Advertisement
Guest User

Untitled

a guest
Sep 21st, 2020
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. include <stdio.h>
  2. #include <stdlib.h>
  3. #define tam 10
  4.  
  5. int main(int argc, char **argv)
  6. {
  7. int vetor [tam];
  8. unsigned i, numero;
  9. printf("Entrar com o numero inicial do vetor.\n");
  10. scanf("%d", &numero);
  11. getchar();
  12.  
  13. for(i=0;i<tam;i++)
  14. {
  15. if(vetor[i]%2)
  16. {
  17. printf("%d\n", vetor[i]);
  18.  
  19. }
  20.  
  21.  
  22. }
  23.  
  24.  
  25.  
  26.  
  27.  
  28.  
  29.  
  30.  
  31.  
  32. return 0;
  33. }
  34.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement