In the following figure, the position of Sun, Moon and Earth during a solar eclipse is shown.
The distance of Moon from Earth is
Since the distance of Sun from Earth is
Also the diameter of Sun is
From the above figure,
Since, triangles
Substitute the values in the above equation.
Hence, the diameter of the Moon is