summaryrefslogtreecommitdiff
path: root/2045/CH3/EX3.4/Ex3_4.sce
diff options
context:
space:
mode:
Diffstat (limited to '2045/CH3/EX3.4/Ex3_4.sce')
-rwxr-xr-x2045/CH3/EX3.4/Ex3_4.sce15
1 files changed, 15 insertions, 0 deletions
diff --git a/2045/CH3/EX3.4/Ex3_4.sce b/2045/CH3/EX3.4/Ex3_4.sce
new file mode 100755
index 000000000..e79529253
--- /dev/null
+++ b/2045/CH3/EX3.4/Ex3_4.sce
@@ -0,0 +1,15 @@
+//example 4 pagenumber 140
+clear
+v1=20;//volt
+i1=((v1)/(200+1))*10^-3;
+disp('current = '+string(i1)+'ampere');
+//greater than 20
+vone=16;
+r=vone/i1;
+r1=r-1*10^3;
+r11=200*10^3-r1;
+disp('resistance = '+string(r)+'ohm');
+disp("r1 = "+string((r1))+"ohm");
+disp("r2 = "+string((r11))+"ohm");
+
+