1 2 3 4 5 6 7
clc Q=-50; //kJ/kg W=-100; //kJ/kg dU=Q-W; disp("gain in internal energy = ") disp(dU) disp("kJ/kg")