1 2 3 4 5 6 7 8 9 10 11 12
clear //Given Z=79 m=9*10**9 e=1.6*10**-19 r=4.0*10**-14 //Calculation K=(m*2*Z*e**2)/(r*1.6*10**-13) //Result printf("\n Energy is %0.2f Mev",K)