summaryrefslogtreecommitdiff
path: root/3754/CH5/EX5.1/5_1.sce
diff options
context:
space:
mode:
Diffstat (limited to '3754/CH5/EX5.1/5_1.sce')
-rw-r--r--3754/CH5/EX5.1/5_1.sce14
1 files changed, 14 insertions, 0 deletions
diff --git a/3754/CH5/EX5.1/5_1.sce b/3754/CH5/EX5.1/5_1.sce
new file mode 100644
index 000000000..80d097152
--- /dev/null
+++ b/3754/CH5/EX5.1/5_1.sce
@@ -0,0 +1,14 @@
+clear//
+
+//Variables
+
+IT = 20 //Total current (in milli-Ampere)
+I2 = 4 //Current (in milli-Ampere)
+
+//Calculation
+
+I1 = IT - I2 //Current (in milli-Ampere)
+
+//Result
+
+printf("\n Value of the current I1 is %0.3f mA.",I1)