If there were no atmosphere around the earth the temperature of Earth will:
Increasing during day and decreasing during night
Greenhouse gases are present in the atmosphere which will trap the heat coming from the sun and increase the temperature in the daytime and re-radiate it back in the night time which lowers the temperature in the nighttime.