summaryrefslogtreecommitdiff
path: root/3769/CH7/EX7.4/Ex7_4.sce
blob: 600dae6fda5d89d8754cc186a0f5094c96aced28 (plain)
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)