diff options
Diffstat (limited to '3754/CH4/EX4.1/4_1.sce')
-rw-r--r-- | 3754/CH4/EX4.1/4_1.sce | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/3754/CH4/EX4.1/4_1.sce b/3754/CH4/EX4.1/4_1.sce new file mode 100644 index 000000000..e5180779b --- /dev/null +++ b/3754/CH4/EX4.1/4_1.sce @@ -0,0 +1,16 @@ +clear//
+
+//Variables
+
+R1 = 220 //Resistance (in ohm)
+R2 = 470 //Resistance (in ohm)
+R3 = 560 //Resistance (in ohm)
+R4 = 910 //Resistance (in ohm)
+
+//Calculation
+
+R = R1 + R2 + R3 + R4 //Net Resistance (in ohm)
+
+//Result
+
+printf("\n Total resistance of circuit is %0.3f ohm.",R)
|