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)