Modular control work with basic programming

C & C++ 4 USD
My task was as follows:
A flat n corner is set by the coordinates of its heights. Find a distance between
The most remote heights.