clc //Given that m = 4 // mass of substance consumed fully in kg c = 3e8 // speed of light in m/s // sample problem 5 page No. 223 printf("\n \n\n # Problem 5 # \n") printf("\n Standard formula used \n E = m*c^2") E = m * c^2// calculation of Amount of energy produced printf ("\n Amount of energy produced is %e J.", E)