The speed of sound in a gas is directly proportional to the square root of the temperature of the gas. This means that if the temperature of the gas doubles, the speed of sound in the gas will increase by a factor of the square root of 2, or approximately 1.41.
The speed of sound in a liquid is also directly proportional to the square root of the temperature of the liquid. However, the increase in the speed of sound in a liquid with temperature is not as significant as it is in a gas. This is because the particles in a liquid are more tightly packed together than the particles in a gas, so they do not have as much room to move around.
The speed of sound in a solid is also affected by temperature, but the effect is very small. This is because the particles in a solid are very tightly packed together, so they do not have any room to move around.