Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void preencher(int n, int vet[])
- {
- int i;
- for(i=0;i<n;i++)
- {
- printf("Digite um valor: ");
- scanf("%d", &vet[i]);
- }
- }
- int main
- {
- int vetor[100],i;
- vetor[i]=0;
- for(i=0;i<100;i++)
- {
- if(i%2=0)
- {
- vetor[i]=0;
- }
- else
- {
- vetor[i]=1;
- }
- printf("O vetor eh %d", vetor[i]);
- return 0;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement