1 2 3 4 5 6 7 8 9 10 11 12 13
clear //Given r=0.2 m=9*10**9 b=50 // E=250*r a=E*4*%pi*r**2 q=b*r**2/m //Result printf("\n Charge contained in a sphere is %0.2f *10**-10 C",q*10**10)