Buscar

What is the purpose of the following algorithm? a) To sort three integers in ascending order. b) To check if three integers are distinct and sort...

What is the purpose of the following algorithm?


a) To sort three integers in ascending order.
b) To check if three integers are distinct and sort them in ascending order if they are.
c) To check if three integers are distinct and sort them in descending order if they are.
d) To check if three integers are equal and sort them in ascending order if they are.
e) To check if three integers are equal and sort them in descending order if they are.

Essa pergunta também está no material:

AP 1   Computação I   2017 1   gabarito
3 pág.

Computação I Faculdade RedentorFaculdade Redentor

💡 1 Resposta

User badge image

Ed Verified user icon

O objetivo do algoritmo é verificar se três números inteiros são distintos e, se forem, classificá-los em ordem crescente. Portanto, a alternativa correta é a letra b).

0
Dislike0

Faça como milhares de estudantes: teste grátis o Passei Direto

Esse e outros conteúdos desbloqueados

16 milhões de materiais de várias disciplinas

Impressão de materiais

Agora você pode testar o

Passei Direto grátis

Você também pode ser Premium ajudando estudantes

✏️ 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