// Given data : clc clear E =2.42 // Band gap in eV hc=1.24 // planck's constant * speed of light // solution Lambda=1.24/E // in micro-meter usinf eq 6.4 printf( "The optimum wavelength is %.3f micro meter",Lambda )