1 2 3 4 5 6 7 8
clc clear //Declaring values Q=50; W=40; U=Q-W; printf('Change in Internal Energy= %2.0f kJ',U);