blob: 1a156853b77e1022e74be3c92ca0d371550a54c5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
//Variable declaration
h=6.626*10**-34; //plancks constant
e=1.6*10**-19;
V=8.5*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))
|