1 2 3 4 5 6 7 8 9 10 11 12
clear //Given m=3*10**-16 g=9.8 d=5*10**-3 q=16.0*10**-18 //Calculation V=(m*g*d/q)*10 //Result printf("\n Voltage needed to balance an oil drop is %0.2f V",V)