July 18 ADA Training - Geometry
The point on the interval
The segment is given by the coordinates of its endpoints: M(
y1) and N(
y2). Find the coordinates of O(x,y), which divides it in ratio α.
In a single line the coordinates of segment endpoints and the number α are given. All coordinates do not exceed 100 by the absolute value.
Print in one line the coordinates x and y of the desired point with two digits after the decimal point.
2 1 8 4 0.5