Hey guys, our homework requires us to write the code to calculate the total resistance of a circuit for "n" number of resistors in parallel. My question is what kind of coding scheme is required for the "n" number of resistors which basically means "infinite" number of resistors?(adsbygoogle = window.adsbygoogle || []).push({});

I know there is a while loop involved, however, I cannot seem to figure out how to make the program accept an infinite number of resistor values?

Your help is greatly appreciated. Thanks.

**Physics Forums | Science Articles, Homework Help, Discussion**

Dismiss Notice

Join Physics Forums Today!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# C (Not C++) Homework Help

Loading...

Similar Threads for Homework Help |
---|

Python (VPython) Can someone help me with my orbit simulator? |

I need help decrypting this |

C/++/# Help with MATLAB code? |

Python What's wrong with my bisection method code? |

Python Help: Convert Matlab to Python code |

**Physics Forums | Science Articles, Homework Help, Discussion**