//Example 4.5, Page number 4.33 clc;clear;close // variable declaration W=1.55 // wavelength // Calculations E_g=(1.24)/W // Bandgap in eV // Result printf("Band gap = %0.1f eV",E_g)