Let two object of mass `m_1,m_2` are separated by distance r.Let F be the force acting between these two objects. Then
force F is directly proportional to the product of masses and Force F is inversely proportinal to squar of distance between them.ie.
`F prop m_1 xxm_2`
Thus combining these two laws
where G is universal gravitational constant.
I mean to ask by the method of dimension
Sorry it was slip /software problem,
mass is in Kg and distance taken in metre.
result force came in Newton.