Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int main
- {
- int vetor[10],i,soma;
- soma=0;
- for(i=0;i<10;i++)
- {
- printf("Digite um numero");
- scanf("%d", &vetor[i]);
- soma=soma+vetor[i];
- }
- printf("O valor da soma eh %d", soma);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement