Jump to content
_junnior0

Alguém me dá um help?

Recommended Posts

_junnior0

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.

Share this post


Link to post
Share on other sites
Zex

Basta usar arrays e depois fazer as contas acedendo aos índices.

C[1] = A[1]+B[1]

C[2] = A[2]+B[2]

Edited by Zex

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...

Important Information

By using this site you accept our Terms of Use and Privacy Policy. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.