Solutions:
Allow a body of mass m to fall vertically or in an inclined plane from a height h. Consider a hill, a slope, or a staircase. The force of gravity acting vertically downwards on the body is F = mg, and the vertical displacement in the direction of force is S = h. As a result, the amount of work done by gravity is
W = FS = mgh