1 2 3 4 5 6 7 8 9 10
clear // p=30 i=10 v=p/i dt=1 dq=i*dt dw=v*dq energy=dw/i printf("\n energy of each coulomb of charge= %0.1f J",energy)