clc; s=12; //sum of squares hv=sqrt(s); //heating voltage =sum of square roots disp(hv,"Heating voltage in volts = "); //displaying result disp(s/10,"Power dissipated in Watt = "); //displaying result