Buscar

What is the algorithm to find the largest number of two integers? a. Algorithm 1 b. Algorithm 2 c. Algorithm 3 d. Algorithm 4 a. Algorithm 1 b. Al...

What is the algorithm to find the largest number of two integers?
a. Algorithm 1
b. Algorithm 2
c. Algorithm 3
d. Algorithm 4

a. Algorithm 1
b. Algorithm 2
c. Algorithm 3
d. Algorithm 4

Essa pergunta também está no material:

Serie_Desenvolvimento_de_Sistemas
53 pág.

Análise e Desenvolvimento de Sistemas Universidade Estácio de SáUniversidade Estácio de Sá

Respostas

User badge image

Ed Verified user icon

To find the largest number of two integers, you can use the following algorithm: Algorithm 1: 1. Read the first integer and assign it to a variable, let's call it "num1". 2. Read the second integer and assign it to another variable, let's call it "num2". 3. Compare "num1" and "num2" to determine which one is larger. 4. If "num1" is larger than "num2", output "num1" as the largest number. 5. If "num2" is larger than "num1", output "num2" as the largest number. 6. If "num1" and "num2" are equal, output a message indicating that both numbers are equal. So, the correct answer would be: a. Algorithm 1

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

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

Continue navegando