summaryrefslogtreecommitdiff
path: root/3836/CH2/EX2.3/Ex2_3.sce
blob: bc823b2163feee1b5553078f6a2a082133b960ad (plain)
1
2
3
4
5
6
7
8
9
10
11
12
clear
//Initialisation
E=12                  //EMF in volt
v2=7                  //volt


//Calculation
v1=E-v2                  //volt

//Result
printf("\n V1 = %d V",v1)