Function in c++

c++ function to calculate your sock size aa your weight in pound divided by height in inches and the result of that calculation nultiplied by by 3.1