summaryrefslogtreecommitdiff
path: root/995/CH1/EX1.21/Ex1_21.sce
diff options
context:
space:
mode:
Diffstat (limited to '995/CH1/EX1.21/Ex1_21.sce')
-rwxr-xr-x995/CH1/EX1.21/Ex1_21.sce8
1 files changed, 8 insertions, 0 deletions
diff --git a/995/CH1/EX1.21/Ex1_21.sce b/995/CH1/EX1.21/Ex1_21.sce
new file mode 100755
index 000000000..74cd6ef6b
--- /dev/null
+++ b/995/CH1/EX1.21/Ex1_21.sce
@@ -0,0 +1,8 @@
+//Ex:1.21
+clc;
+clear;
+close;
+i=20*10^-3;//in amps
+r=1000;//in ohms
+p=(i^2)*r;
+printf("Power dissipated = %f watts",p); \ No newline at end of file