This program will compute the equivalent resistance to resistors connected in series if the user specifies a value of 1 when prompted for a variable called "choice" or "runmode", and the equivalent resistance to resistors connected in parallel if the user specifies a value of 2 when prompted for the "choice" (or "runmode") variable.
In either case, the number and values of the resistors connected in series or in parallel are user-specified.