**Parallel Resistance**

i am trying to input and calculate this for any given number of resistors and any value of the resistors.

the formula is

**1/R= 1/R1+1/R2+1/R3.........+!/Rn**

Could someone tell me how to input this into C++

could u explain a little on how to do this aswell.

Thank you

Ps it would be very helpful if anybody knows how to input this in to MATLAB 7 aswell. Thank you

I know its asking alot but man was made to help man

its in our nature