Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int main(){
- int x, y, cont, vet[12];
- for(cont = 0; cont < 12; cont++){
- printf("Entre com um numero\n");
- scanf("%d", &vet[cont]);
- }
- printf("Escreva um numero\n");
- scanf("%d", &x);
- printf("Escreva outro numero\n");
- scanf("%d", &y);
- printf("A soma e: %d\n", vet[x] + vet[y]);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement