1 2 3 4
clc; F=4.5*9.8; //in Newton q=sqrt(((0.03^2)*4.5*9.8)/(9*10^9)); //calculating q using F=(1/4*3.14*eo)*((q1*q2)/(r^2)) disp(q,"Charge in coulomb = "); //displaying result