1 2 3 4 5
clc; VL=10.6; //volt RL=20; //Ohm PL=VL^2/RL; //Watt disp('W',PL,"PL=");//The answers vary due to round off error