We use the formula,

Given,
and
.
Substituting these values, we get
.
As Jupiter were a perfect sphere, therefore the volume of sphere is given by

Here, r is the radius of sphere.
Substituting the value of volume we get
.
The diameter is twice of radius, thus the diameter of Jupiter would be
