blob: e884281ac078ddccb4eee60e633614a3aab7c990 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
//Variable declaration
h=6.63*10**-34; //planck's constant
c=3*10**8; //velocity of light(m/s)
Eg=1.44; //energy gap(eV)
e=1.6*10**-19;
//Calculation
lamda=h*c/(Eg*e); //wavelength(m)
//Result
printf('wavelength is %0.3f angstrom \n',(lamda*10**10))
|