summaryrefslogtreecommitdiff
path: root/3836/CH12/EX12.1/Ex12_1.sce
blob: dc818ae515d68a6046c8be78a0be0b3a36c051dc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
clear
//Initialization
i1=8                                 //current in Amp
i2=1                                //current in Amp
i3=4                                //current in Amp

//Calculation
i4=i2+i3-i1                                //current in Amp

//Results
printf("\n Magnitude, I4 = %d A",i4)