clear //Given C=100*10**-6 //F V=500 //V //Calculation q=V/2.0 E=0.5*(0.5*C*V**2) //Result printf("\n Charge in the new stored energy is %0.3f J", E)