returning or redoing the for statement : <p>i want to scan a number from 0 to 100 and when it found a certain number it will execute a function then i want it to return back to the for statement and continue in scanning other numbers. </p>

<p>i have tried changing if statement with while statement but it only repeat the function that are inside the while statement. i want to go back to the for statement to scan the number. </p>

<p>here is an example of what i am trying to do:</p>

<pre><code>// returning from if statement back to for statement
for(int number = 0;number &lt; 100;number++){
  if(number == 5){
    // do something

    // come back and keep scanning other number
  }
}
</code></pre>
