1 2 3 4 5 6 7 8 9 10 11 12
clear //Given q=1*10**-6 a=2*10**-2 E=10**5 //Calculation p=q*a W=2*p*E //Result printf("\n Work done in the rotation is %0.3f *10**-3 J", W*10**3)