blob: c83039f4cb5350742ebf612fca3672a6924aaa7b (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
//Variable declaration
h=6.625*10**-34; //plancks constant
e=1.6*10**-19;
V=650*10**-6; //voltage(V)
//Calculation
new=2*e*V/h; //frequency(Hz)
//Result
printf('frequency is %0.3f *10**9 Hz \n',(new/10**9))
|