C write function distance that calculates the distance between two points (x1, y1) and (x2, y2). all numbers and return values should be of type double.