//chapter15 //example15.3 //page321 P=50 // W R=8 // ohm // since p=V^2/R we get V=(P*R)^0.5 I=V/R printf("ac output voltage = %.3f V \n",V) printf("ac output current = %.3f A \n",I)