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.
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
0
Faça como milhares de estudantes: teste grátis o Passei Direto
Compartilhar