clear clc disp('Exa-1.2'); Mp=1.007276 ; Me=5.4858*10^-4; //mass of proton and electron in terms of U Mt=Mp+Me; //Total mass= sum of above masses printf('The combined mass of an electron and a proton was found out to be %f U.',Mt);