clc //Given that m = 9e-31 // mass in kg E = 1e9 // Energy of accelerated electron in eV c = 3e8 // speed of light in m/s // sample problem 14c page No. 227 printf("\n \n\n # Problem 14c # \n") printf("\n Standard formula used \n E = m*c^2") E_0 = m * c^2// calculation of rest mass energy ratio = E / E_0 *1.6e-19// calculation of Ratio of energy to rest mass energy printf ("\n Ratio of energy to rest mass energy is %e.",ratio )