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

bookChallenge: Calculate Average Temperature

Tarea

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.

Solución

¿Todo estuvo claro?

¿Cómo podemos mejorarlo?

¡Gracias por tus comentarios!

Sección 1. Capítulo 6
single

single

Pregunte a AI

expand

Pregunte a AI

ChatGPT

Pregunte lo que quiera o pruebe una de las preguntas sugeridas para comenzar nuestra charla

close

bookChallenge: Calculate Average Temperature

Desliza para mostrar el menú

Tarea

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.

Solución

Switch to desktopCambia al escritorio para practicar en el mundo realContinúe desde donde se encuentra utilizando una de las siguientes opciones
¿Todo estuvo claro?

¿Cómo podemos mejorarlo?

¡Gracias por tus comentarios!

Sección 1. Capítulo 6
single

single

some-alt