summaryrefslogtreecommitdiff
path: root/343/CH1/EX1.22/ex1_22.sce
diff options
context:
space:
mode:
Diffstat (limited to '343/CH1/EX1.22/ex1_22.sce')
-rwxr-xr-x343/CH1/EX1.22/ex1_22.sce12
1 files changed, 12 insertions, 0 deletions
diff --git a/343/CH1/EX1.22/ex1_22.sce b/343/CH1/EX1.22/ex1_22.sce
new file mode 100755
index 000000000..0cb77c268
--- /dev/null
+++ b/343/CH1/EX1.22/ex1_22.sce
@@ -0,0 +1,12 @@
+V=20; //Assigning values to different parameters
+I=1.5;
+R1=10;
+R2=15;
+R3=15;
+V10=R1*I;
+Vab=V-V10;
+I1=Vab/R2;
+I2=Vab/R3;
+I3=I-I1-I2;
+R=Vab/I3;
+disp("Ohms",R,"Value of unknown resistance"); \ No newline at end of file