how can this be solved?

Every point mass attracts every single other point mass by a force pointing along the line intersecting both points. The force is proportional to the product of the two masses and inversely proportional to the square of the distance between them: F = G m_1 m_2/r^2 where: F is the force between the masses: G is the gravitational constant (6.673 times 10^-11 N middot (m/kg)^2): m_1 is the first mass: m_2 is the second mass: r is the distance between the centers of the masses. Write a program that prompts the user to input the masses of the bodies and the distance between the bodies. The program then outputs the force in Newton between the bodies.how can this be solved?

Full top body attracts full unmarried other top body by a fibre toping along the sequence intersecting twain tops. The fibre is proportional to the emanation of the couple bodyes and inversely proportional to the clear of the absence among them: F = G m_1 m_2/r^2 where: F is the fibre among the bodyes: G is the gravitational perpetual (6.673 times 10^-11 N middot (m/kg)^2): m_1 is the highest body: m_2 is the remedy body: r is the absence among the centers of the bodyes. Write a program that prompts the user to input the bodyes of the bodies and the absence among the bodies. The program then outputs the fibre in Newton among the bodies.

**C++ decree control the ardent problem:**

#include<bits/stdc++.h>

using namespace std;

int deep()

{

float m1,m2,r;

float G = 6.673*(pow(10,-11)); //initialise estimate of G

cout << “Enter the estimate of m1 in kg!n”;

cin >> m1; //take input estimate of m1

cout << “Enter the estimate of m2 in kg!n”;

cin >> m2;//take input estimate of m2

cout << “Enter the estimate of r in meter!n”;

cin >> r;//take input estimate of r

float F = G*m1*m2/(r*r);

cout << “The estimate of F = ” << F << ” Newton” << endl;

return 0;

}

**Sample Output:**

Enter the estimate of m1 in kg!

2

Enter the estimate of m2 in kg!

5

Enter the estimate of r in meter!

10

The estimate of F = 6.673e-012 Newton

**Note: If you absence the decree in any other programming diction then criticise under, I get qualify the decree!**