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?
2 Antworten
+ 6
Hint:
while(condition)
{
if(input_is_faulty) continue;
// your code here
}
+ 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.