diff options
Diffstat (limited to '3836/CH2/EX2.4/Ex2_4.sce')
-rw-r--r-- | 3836/CH2/EX2.4/Ex2_4.sce | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/3836/CH2/EX2.4/Ex2_4.sce b/3836/CH2/EX2.4/Ex2_4.sce new file mode 100644 index 000000000..46d4a95e3 --- /dev/null +++ b/3836/CH2/EX2.4/Ex2_4.sce @@ -0,0 +1,12 @@ +clear +//Initialisation +i=3 //current in amp +r=50 //resistance in ohm + + +//Calculation +p=(i**2)*r //power in watt + +//Result +printf("\n P = %d W",p) + |