Dear friends,

I have a school assignement in C, which asks for doing some parallel and series resistant calculation, I know how to do that but my problem is that the assignment asked to update the answer based on inputs. the assignement is :

"A voltage source is connected to resistors according to the figure:

Write a program, that after the entering of Uin and Ro computes

the voltage Uout. This computation is done during the entering of R1, R2, ….Rn.

Use a function R_parallel(), that returns every time the replacements

resistance for R1, R2 ….Rn . End the program by entering a negative resistance value."

Thanks!