summaryrefslogtreecommitdiff
path: root/3769/CH2/EX2.12/Ex2_12.sce
blob: ac6787be4bf99f82698e9aecd489eff8c5f5a659 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
clear
//Given
q=20*10**-6
a=10**-2
m=9*10**9
r=0.1

//Calculation
p=q*a
E=m*2*p/r**3

//Result
printf("\n Electric field intensity is  %0.3f  *10**5  N/C", E*10**-5)