summaryrefslogtreecommitdiff
path: root/3836/CH12/EX12.1/Ex12_1.sce
diff options
context:
space:
mode:
Diffstat (limited to '3836/CH12/EX12.1/Ex12_1.sce')
-rw-r--r--3836/CH12/EX12.1/Ex12_1.sce12
1 files changed, 12 insertions, 0 deletions
diff --git a/3836/CH12/EX12.1/Ex12_1.sce b/3836/CH12/EX12.1/Ex12_1.sce
new file mode 100644
index 000000000..dc818ae51
--- /dev/null
+++ b/3836/CH12/EX12.1/Ex12_1.sce
@@ -0,0 +1,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)
+