The geometric mean is obtained by multiplying all the four numbers and taking the fourth root of the product.Let x_{1} ,x_{2},x_{3} and x_{4} be the given four numbers then geometric mean =(x_{1}x_{2}x_{3}x_{4})^{1/4}
Step-by-step procedure (Algorithm) :1. Read the four number into four locations labelled as x_{1}x_{2}x_{3} and x_{4}
2. Compute PROD name it as A = x_{1}x_{2}x_{3x4 }( Where PROD means Product).
3. Calculate GM = (A)^{1/4}
4. Print GM is G.
5. Stop