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

//Variables

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

//Calculation

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

//Result

printf("\n The input current is  %0.3f  A.",I)