clc; eo=(8.854*10^-12); //constant E=2; //magnitude of electric field in N/C r=0.5; //r in m q=E*4*(%pi)*(eo)*(r^2); //calculating charge disp(q,"Charge in Coulomb = "); //displaying result