Given four numbers, return true if they are evenly spaced; that is, sorted in ascending or descending order, with the same distance between them.
Complete the following file:
prog.cpp
#include <iostream> using namespace std; bool evenlySpaced(double a, double b, double c, double d) {
}