blob: 093761a091d7d9b6a30cc2b0956c17ceb46ec66c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
clear
//Given
E=-13.6*1.9*10**-19 //J
m=9*10**9
e=1.6*10**-19
n=1
c=3*10**8
//Calculation
r=(-e**2*m)/(2.0*E)
v=c/(137*n)
//Result
printf("\n Orbital radius is %0.1f *10**-11 m",r*10**11)
printf("\n Velocity of the electron is %0.1f *10**6 m/s",v*10**-6)
|