1 2 3 4 5 6 7 8 9 10 11
clear //given Va=-10 //V W=300 //J q=3.0 //C //Calculation V=(W/q)+Va //Result printf("\n The value of V is %0.3f Volts", V)