summaryrefslogtreecommitdiff
path: root/3836/CH2/EX2.6/Ex2_6.sce
blob: 7d7d5033d27c59a61fb5fc3d6eafe92143dbfe2f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
clear
//Initialisation
r1=10                       //resistance in ohm
r2=20                       //resistance in ohm



//Calculation
r=(r1*r2)*(r1+r2)**-1                       //parallel resistance in ohm

//Result
printf("\n R = %.2f ohm",r)