1 2 3 4 5 6 7
//Example 6_4 clc(); clear; //To find the band gap lamda=1.55 //units in eV eg=1.24/lamda //units in eV printf("Band gap is Eg=%.1feV",eg)