clear clc disp('Exa-8.2(a)'); EKa=21.990;EKb=25.145;EK=25.514 //all the values are in KeV ELo=EKb-EKa;printf('The enrgy of La of X-ray is %.3fKeV.\n',ELo); //Energy of La X-ray disp('Exa-8.2(b)'); EL=-EK+EKa;printf('Hence the binding energy of the L electon is %.3fKeV.',EL); // for electron L electron