summaryrefslogtreecommitdiff
path: root/1301/CH13/EX13.10/ex13_10.sce
blob: c2389494b5d9c024ab99788d6bea9d914ef68124 (plain)
1
2
3
4
5
6
7
clc;
i=15;      //current in Ampere
v=240;     //potential diff. in Volt
t=45/60;   //time in hours
p=v*i;     //clculating power in Watt using p=v*i
w=p*t;     //calculating work done in Watt.h using w=p*t
disp(w/1000,"Work done in  kiloWatt.hr = ");   //displaying result