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