diff options
Diffstat (limited to '995/CH1/EX1.20/Ex1_20.sce')
-rwxr-xr-x | 995/CH1/EX1.20/Ex1_20.sce | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/995/CH1/EX1.20/Ex1_20.sce b/995/CH1/EX1.20/Ex1_20.sce new file mode 100755 index 000000000..b92f32e93 --- /dev/null +++ b/995/CH1/EX1.20/Ex1_20.sce @@ -0,0 +1,8 @@ +//Ex:1.20
+clc;
+clear;
+close;
+v=4;//in volts
+r=100;//in ohms
+p=(v^2)/r;
+printf("Power dissipated = %f watts",p);
\ No newline at end of file |