Buscar

Considering the input 1, 2, 3, 4, 5, 6, 7, 8 and 9 and the program snippet below, what will be printed on the screen? The program will print the e...

Considering the input 1, 2, 3, 4, 5, 6, 7, 8 and 9 and the program snippet below, what will be printed on the screen?

The program will print the elements of the matrix that are on the main diagonal.
1 2 3
1 3 5 7 9
1 2 3 4 5 6 7 8 9
1 5 9
2 4 6 8

Essa pergunta também está no material:

INTRODUÇÃO A PROGRAMAÇÃO - 1Ciclo
7 pág.

Introdução à Programação Universidade Estácio de Sá - EADUniversidade Estácio de Sá - EAD

💡 1 Resposta

User badge image

Ed Verified user icon

O programa irá imprimir os elementos da matriz que estão na diagonal principal. Portanto, serão impressos os números 1, 3, 9.

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