A `P-V` diagram is obtained by changing the temeprature of the gas as shown. During the proces the gas is
A. heated continuously
B. cooled continuously
C. heated in the beginning but cooled towards the end
D. cooled in the beginning but heated towards the end