- #1
Smiler7
- 2
- 0
Write a program that prompts the user to enter the resistance of each resistor continuously by using a while loop until a zero resistance is entered and store it in an array, then calculates the equivalent resistance R. Also count the number of resistors n. Test your program with R1 = 1 kΩ,R2 = 2 kΩ.,R3 = 4 kΩ and R4 = 8 kΩ . What is the equivalent resistance? Use another separate loop to print the resistances and the equivalent resistance.
I'm trying to do this question above but i don't actually get what its asking for?!
----------------------------------------------------------------------------------------
"Write a program that prompts the user to enter the resistance of each resistor continuously by using a while loop until a zero resistance is entered and store it in an array, then calculates the equivalent resistance R..."
/* Starting with this bit i could write a program where i enter the value of each resistor. But "continuously by using a while loop until a zero resistance is entered and store it in an array"?! */
I'm trying to do this question above but i don't actually get what its asking for?!
----------------------------------------------------------------------------------------
"Write a program that prompts the user to enter the resistance of each resistor continuously by using a while loop until a zero resistance is entered and store it in an array, then calculates the equivalent resistance R..."
/* Starting with this bit i could write a program where i enter the value of each resistor. But "continuously by using a while loop until a zero resistance is entered and store it in an array"?! */