1 2 3 4 5 6 7 8 9 10 11 12 13
clear //Given q=2*10**-6 a=0.1 m=9*10**9 r=0.5 //Calculation p=q*a E=m*p/r**3 //Result printf("\n Electric field intensity is %0.3f *10**4 N/C",E*10**-4)