summaryrefslogtreecommitdiff
path: root/3754/CH3/EX3.26/3_26.sce
blob: 7ee91e2c444828960c03ffd8b1765afbe9305f5f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
clear//

//Variables

P = 36.0               //Power consumed (in watt)
V = 230.0              //Voltage (in volts)

//Calculation

I = P/V                //Current (in Ampere)

//Result

printf("\n Current through filament is  %0.3f  A.",I)