Buscar

What is the purpose of the algorithm presented in question 1? The algorithm calculates the difference between the sum of the squares of the first ...

What is the purpose of the algorithm presented in question 1?

The algorithm calculates the difference between the sum of the squares of the first 50 natural numbers and the square of the sum of the first 50 natural numbers.
a) To calculate the sum of the first 50 natural numbers.
b) To calculate the sum of the squares of the first 50 natural numbers.
c) To calculate the square of the sum of the first 50 natural numbers.
d) To calculate the difference between the sum of the squares of the first 50 natural numbers and the sum of the first 50 natural numbers.
e) To calculate the difference between the sum of the squares of the first 50 natural numbers and the square of the sum of the first 50 natural numbers.

Essa pergunta também está no material:

AP2 - Computação I - 2018-1 - gabarito V1

Computação I Centro Federal de Educação Tecnológica Celso Suckow da FonsecaCentro Federal de Educação Tecnológica Celso Suckow da Fonseca

💡 1 Resposta

User badge image

Ed Verified user icon

O objetivo do algoritmo apresentado na questão 1 é calcular a diferença entre a soma dos quadrados dos primeiros 50 números naturais e o quadrado da soma dos primeiros 50 números naturais. A alternativa correta é a letra E.

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