What happens to the temperature of a gas when it is compressed?

2 answers

nevermind, the temperature increase
When a gas is compressed, we do work on it. The energy must go somewhere. Where or in what form?