summaryrefslogtreecommitdiff
path: root/995/CH2/EX2.3/Ex2_3.sce
diff options
context:
space:
mode:
Diffstat (limited to '995/CH2/EX2.3/Ex2_3.sce')
-rwxr-xr-x995/CH2/EX2.3/Ex2_3.sce9
1 files changed, 9 insertions, 0 deletions
diff --git a/995/CH2/EX2.3/Ex2_3.sce b/995/CH2/EX2.3/Ex2_3.sce
new file mode 100755
index 000000000..0bd668d75
--- /dev/null
+++ b/995/CH2/EX2.3/Ex2_3.sce
@@ -0,0 +1,9 @@
+//Ex:2.3
+clc;
+clear;
+close;
+v=28;//in volts
+i=0.1;//in A
+r=v/i;
+p=v*i;
+printf("Resistance Value = %f ohms & Power dissipated = %f W",r,p);