clear clc disp("example 9.1") m=1*10^-3//mass of 1 grm in kgs c=3*10^8 e=m*c^2; E=e/(1000*3600) printf("energy equivalent of 1 gram is %dkWh",E)