Which of the following factors will affect the velocity of sound?