Write an algorithm that reads two 10-position vectors and multiplication of elements of the same index, placing the result in a third vector. Show the resulting vector.
I wanted to show the values you entered first, and then start the multiplication step by step. Is this how it would start?
int main(void) {
int vetorA[10] = {0};
int vetorB[10] = {0};
int a,b;
for(a = 0; a < 10; a++){
printf("Vetor A: \n");
a=getchar();
for(b = 0; b < 10; b++){
printf("Vetor B: \n");
b=getchar();
}
}
return 0;
}