1 2 3 4 5 6 7 8 9
clear //Given E=9*10**4 //N/C r=2*10**-2 //m m=9*10**9 //Calculation a=r*E/(2.0*m) printf("\n Linear charge density is %0.3f Cm-1", a)