1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
//Ex1_4 clc; //Given: wavelength=10^-10; m=9.1*10^-31; h=6.626*10^-34; //solution: p=h/wavelength; e=p*p/(2*m); // energy in J e1=e/(1.6*10^-19);// energy in eV printf("The energy in eV is = %f ",e1)