summaryrefslogtreecommitdiff
path: root/3630/CH2/EX2.5/Ex2_5.sce
diff options
context:
space:
mode:
Diffstat (limited to '3630/CH2/EX2.5/Ex2_5.sce')
-rw-r--r--3630/CH2/EX2.5/Ex2_5.sce8
1 files changed, 8 insertions, 0 deletions
diff --git a/3630/CH2/EX2.5/Ex2_5.sce b/3630/CH2/EX2.5/Ex2_5.sce
new file mode 100644
index 000000000..4628fa39b
--- /dev/null
+++ b/3630/CH2/EX2.5/Ex2_5.sce
@@ -0,0 +1,8 @@
+clc;
+//ex2.5
+Vs=5; //volt
+Vd=0.7; //volt
+R1=1200; //ohm
+R2=2200; //ohm
+It=(Vs-Vd)/(R1+R2); //Ampere//Apply KVL to circuit
+disp('Ampere',It*1,"It=")