+ 2

I wanna make a menu with C

I want to make a menu for the calculation of resistance in parallel and in series, but when browsing the menu an error occurs. For example, I select "calculate in series", enter the number of resistors and finally the values ​​of the resistors, and get the result. but at the time of changing in "calculate in parallel" it no longer allows me to enter the number of resistors https://code.sololearn.com/ceEHjG0NqRy0/?ref=app https://code.sololearn.com/cBcS6sICLv41/?ref=app

22nd Jan 2020, 4:12 AM
Carlos Flores
Carlos Flores - avatar
5 Antworten
+ 1
Before the switch put i = 1;
22nd Jan 2020, 4:47 AM
unChabon
unChabon - avatar
+ 3
//Can you please post your source code, so we can further look into problem
22nd Jan 2020, 4:14 AM
Sudarshan Rai
Sudarshan Rai - avatar
+ 2
length exceeds word limit Please use code playground to post your code https://www.sololearn.com/post/75089/?ref=app
22nd Jan 2020, 4:24 AM
Gordon
Gordon - avatar
+ 2
Ready
22nd Jan 2020, 4:27 AM
Carlos Flores
Carlos Flores - avatar
+ 1
//remove conio.h and in line 19 you are doing opcion its option https://code.sololearn.com/chZMYL3ZqLvD/?ref=app
22nd Jan 2020, 4:40 AM
Sudarshan Rai
Sudarshan Rai - avatar