_junnior0 Posted November 12, 2019 at 11:16 PM Report Share #616594 Posted November 12, 2019 at 11:16 PM 1. Dados os vetores A = [15, 44, 23, 1, 0, 18, 17, 37, 35, 54] e B = [32, 115, 48, 55, 51, 0, -48, 85, 15, 99] crie um algoritmos e programa que imprima: 1. A multiplicação dos elementos de A por B; 2. Adição dos elementos de A por B; 3. Subtração dos elementos de A por B; 4. A U B. Link to comment Share on other sites More sharing options...
Zex Posted November 12, 2019 at 11:42 PM Report Share #616596 Posted November 12, 2019 at 11:42 PM (edited) Basta usar arrays e depois fazer as contas acedendo aos índices. C[1] = A[1]+B[1] C[2] = A[2]+B[2] Edited November 12, 2019 at 11:44 PM by Zex Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now