If mass is written as m=kcPG-1/2h1/2 then the value of P will be (Constants have their usual meaning with k a dimensionless constant) [2024]
(1)
m=KCPG-1/2h1/2 ...(1)
G=Fr2m1·m2=MLT-2·L2M2=[M-1L3T-2]
Now using (1)
[M]=[LT-1]P [M-1L3T-2]-1/2 [ML2T-1]1/2
Compare the dimension of T from L.H.S and R.H.S then
-P+12=0⇒P=12