1 2 3 4 5 6 7 8
clc //Initialization of variables work=-622 //kJ heat=-82 //kJ //Calculations U=work+heat //results printf('The persons internal energy falls by %d kJ',U)