summaryrefslogtreecommitdiff
path: root/3769/CH14/EX14.15/Ex14_15.sce
blob: c951a6fc0d06032c9acc8c9e5ae307ffc84975d9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
clear
//Given
Vp=220.0                        //V
Vs=22                           //V
Z=220                            //ohm
Is=0.1

//Calclation
Ip=(Vs*Is)/Vp

//Result
printf("\n Current drawn is %0.3f  A", Ip)