Thread
:
Calculating resistance
View Single Post
•
•
Join Date: Jan 2008
Posts: 3,765
Reputation:
Solved Threads: 493
VernonDozier
Offline
Senior Poster
Re: Calculating resistance
0
#
2
Nov 20th, 2008
Help with Code Tags
(
Toggle Plain Text
)
if (code==1){ total += rv;} else {
sumD += 1.0/rv;
} } if (code==2){
total += 1.0/(sumD);
}
if (code==1){ total += rv;} else { sumD += 1.0/rv;} } if (code==2){ total += 1.0/(sumD);}
Both red lines of code execute when code == 2. Is this what you want?
VernonDozier
View Public Profile
Find all posts by VernonDozier