Buscar

What is the output of the following algorithm? 100, 95, 90, 85, 80, 75, 70, 65, 60, 55 a. 100, 95, 90, 85, 80, 75, 70, 65, 60, 55 b. 55, 60, 65, 7...

What is the output of the following algorithm?
100, 95, 90, 85, 80, 75, 70, 65, 60, 55

a. 100, 95, 90, 85, 80, 75, 70, 65, 60, 55
b. 55, 60, 65, 70, 75, 80, 85, 90, 95, 100
c. 50, 55, 60, 65, 70, 75, 80, 85, 90, 95

Essa pergunta também está no material:

Contagem regressiva de 100 a 50 em passos de 5
1 pág.

Programação I Universidad De La GuajiraUniversidad De La Guajira

💡 1 Resposta

User badge image

Ed Verified user icon

A resposta correta é a alternativa b. O algoritmo está ordenando os números em ordem decrescente, então o resultado será: 55, 60, 65, 70, 75, 80, 85, 90, 95, 100.

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