1 2 3 4 5 6 7 8 9 10 11 12
clear //Given P1=100.0 //W P=1100.0 //W V=250 //Calculation P2=P-P1 R=V**2/P2 //Result printf("\n The value of unknown resistance is %0.3f ohm", R)