blob: b26b92df3ce618388d5050ddde1f1b35e4aed08f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
clear
//
//
//
//Variable declaration
c=3*10**8 //velocity of light(m/s)
h=6.63*10**-34 //plank's constant(Js)
e=1.6*10**-19 //charge(coulomb)
lamda=1.55*10**-6 //wavelength(m)
//Calculation
Eg=h*c/(lamda*e) //band gap(eV)
//Result
printf("\n band gap is %0.1f eV",Eg)
|