1 2 3 4 5 6 7 8 9
//variable declaration W=1.55 //wavelength //Calculations E_g=(1.24)/W //Bandgap in eV //Result printf('Band gap = %0.3f eV \n',E_g)