Kotlinlearncs.online LogoJava
Return to List

Solve: Print Count in Interval

Created By: Justin Maier
/ Version: 2025.10.0

Write a function countInInterval that takes three arguments:

  1. An array of doubles.
  2. A double representing a lower bound.
  3. Another double representing an upper bound.

Your function should print out the number of elements in the array that are strictly between the lower bound and the upper bound.

Related Lessons

Stuck? You may find these lessons helpful: