The midpoint takes an interval as argument. midpoint returns the midpoint of the interval. Input:
Output: