Explanation:
Hey there!
According to the law of gravitation, the factors that affects the gravity are:
Mass of heavenly bodies:The mass of heavenly bodies affect the gravity. We know that gravity is directly proportional to the mass of heavenly bodies. so, when the mass is more there is more gravity and where there is less mass there is less gravity.
Distance from the centre of the body to next body: It is one of the factor to influence gravity. When there is more distance there is less gravity and where there is distance more force is there. Is means gravity is inversely proportional to the distance between the bodies.
Hope it helps...