1 2 3 4 5 6
//Example 1-34 PG NO-30 V=20; //VOLTAGE R1=5; //Resistance X=7.5; P=(20/(R1+X))^2*(X); //Power disp('i) Power (P) is = '+string (P) +' W ');