1 2 3 4 5 6
a=2.75; b=0.3; c=1.43; d=0.7; Eg=a*b+c*d; printf('\n For the Al0.3Ga0.7As alloy, the bandgap energy is %feV',Eg);