Given two numbers, calculate the distance between them on a number line. If it is less than 10 return the distance, otherwise return 10.

Complete the following file:

prog.cpp

#include <cmath> #include <iostream> #include <algorithm> using namespace std; double distanceOnNumberLine(double a, double b) {
}