Buscar

What is the purpose of the algorithm presented in question 3? The algorithm calculates the product of the even and odd numbers in the main diagona...

What is the purpose of the algorithm presented in question 3?

The algorithm calculates the product of the even and odd numbers in the main diagonal of a square matrix.
a) To calculate the sum of the even and odd numbers in the main diagonal of a square matrix.
b) To calculate the product of the even and odd numbers in the secondary diagonal of a square matrix.
c) To calculate the sum of the even and odd numbers in the secondary diagonal of a square matrix.
d) To calculate the product of the even and odd numbers in the main diagonal of a rectangular matrix.
e) To calculate the sum of the even and odd numbers in the main diagonal of a rectangular matrix.

Essa pergunta também está no material:

AP2 - Computação I - 2018-1 - gabarito V1

Computação I Centro Federal de Educação Tecnológica Celso Suckow da FonsecaCentro Federal de Educação Tecnológica Celso Suckow da Fonseca

💡 1 Resposta

User badge image

Ed Verified user icon

O objetivo do algoritmo apresentado na questão 3 é calcular o produto dos números pares e ímpares na diagonal principal de uma matriz quadrada. A alternativa correta é a letra "d) Para calcular o produto dos números pares e ímpares na diagonal principal de uma matriz retangular".

0
Dislike0

✏️ Responder

SetasNegritoItálicoSublinhadoTachadoCitaçãoCódigoLista numeradaLista com marcadoresSubscritoSobrescritoDiminuir recuoAumentar recuoCor da fonteCor de fundoAlinhamentoLimparInserir linkImagemFórmula

Para escrever sua resposta aqui, entre ou crie uma conta

User badge image

Outros materiais