blob: ec8cbdbecb236ded84274830aefb3c0532e66b7e (
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)
Eg=1.44*e //band gap(eV)
//Calculation
lamda=h*c*10**10/Eg //wavelength(angstrom)
//Result
printf("\n wavelength is %0.0f angstrom",lamda)
|