hhxxvc wrote:you can use c++ or c#

How about pseudo code?...

Take two points and a percentage. Calculate the distance between the two points. Calculate the distance that is the given percentage of that full distance. Now that you have that partial distance, calculate the point on the line between the two points that is the partial distance from the first point. You'll probably want to make use of a unit vector to calculate the position of the interpolated point.