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)