summaryrefslogtreecommitdiff
path: root/3769/CH3/EX3.2/Ex3_2.sce
blob: 0b331f97ece7a9ad374e1e26c377d7d60e30bc39 (plain)
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)