Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Aprenda Challenge: Calculate Average Temperature | For Loops: Fundamentals and Applications
C# Loops Practice

bookChallenge: Calculate Average Temperature

Tarefa

Swipe to start coding

Write a program that calculates the average temperature from an array of integers.

  • Use a for loop to sum all values in the temps array.
  • Divide the sum by the number of elements in temps to find the average.
  • Return the average as a double value.

Solução

Tudo estava claro?

Como podemos melhorá-lo?

Obrigado pelo seu feedback!

Seção 1. Capítulo 6
single

single

Pergunte à IA

expand

Pergunte à IA

ChatGPT

Pergunte o que quiser ou experimente uma das perguntas sugeridas para iniciar nosso bate-papo

Suggested prompts:

Can you explain this in simpler terms?

What are the main points I should remember?

Can you give me an example?

close

bookChallenge: Calculate Average Temperature

Deslize para mostrar o menu

Tarefa

Swipe to start coding

Write a program that calculates the average temperature from an array of integers.

  • Use a for loop to sum all values in the temps array.
  • Divide the sum by the number of elements in temps to find the average.
  • Return the average as a double value.

Solução

Switch to desktopMude para o desktop para praticar no mundo realContinue de onde você está usando uma das opções abaixo
Tudo estava claro?

Como podemos melhorá-lo?

Obrigado pelo seu feedback!

Seção 1. Capítulo 6
single

single

some-alt