1
Write an algorithm that reads two vectors of 10 positions and make the multiplication of the elements of the same index, placing the result in a third vector. Show the resulting vector.
I wanted to first show the typed values and then start to elaborate the step by step multiplication. That’s how I 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;
}
What language?
– user28595
Language c, grateful if you can help
– Rodrigo Muniz
1º The way you are getting the data is wrong Wikipedia - Simple Input and Output 2º You can show the values in it
forwhere to use to sum the vectorsaandb( Then you do another to show the sum value next to the Dice if you want ) 3º You should start the counters with 0 in your homes.– user48471