Buscar

Considering the input 1, 2, 3, 4, 5, 6, 7, 8 and 9 and the program excerpt below, what will be printed on the screen? A matrix with 3 rows and 3 c...

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

A matrix with 3 rows and 3 columns will be created.
The program will print the elements of the matrix where the row and column are equal.
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

Respostas

User badge image

Ed Verified user icon

A matriz com 3 linhas e 3 colunas será criada. O programa imprimirá os elementos da matriz onde a linha e a coluna são iguais. Portanto, o que será impresso na tela é: 1 5 9 2 4 6 8

0
Dislike0

Responda

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

Mais conteúdos dessa disciplina