Updated print_range.cpp to print ranges between any numbers