clear//

//Variables

W = 75.0     //Work done (in Joules)
Q = 50.0     //Charge produced (in Coulomb)

//Calculation
V = W/Q    //Voltage between battery terminals (in Volts)

//Result
printf("\n Terminal voltage of a battery is  %0.3f  V.",V)