The distance of object (p) and the distance to the image (q) are dependent on how "curved" the lens is, called the focal point (f).
1/f= 1/p + 1/q
Given the object distance (p) and image distance (q), find the distance to the focus (f). Print out the focus with the distance rounded to the nearest tenth.
It has to be in C, no c++ and run in Visual Studio 2015.