0 of 10 problems solved • 0%
Use in a course

Exercise prompt

Count Warm Days

A counter can track how many array values satisfy a condition. Increase it only when the current value matches the rule.

Your task

Count the temperatures that are at least 20, then display Warm days: 3. Use a loop and an if statement.