0

How to execute tge complete set of inputs in a loop even if a middle input is a false one?

In a while loop it is given that when it gets a false description in the middle of the loop, it doesnt execute the next part of the loop.How should i make the program to continue the process till the end?

26th Aug 2018, 9:57 AM
Sireesha Potineni
2 Respostas
+ 6
Hint: while(condition) { if(input_is_faulty) continue; // your code here }
26th Aug 2018, 10:16 AM
Ipang
+ 2
What language are you using? Also maybe you could tell a bit more about what you need the inputs for? Depending on the answer, there might be a different optimal solution.
26th Aug 2018, 11:13 AM
HonFu
HonFu - avatar