codeGK
Code it ALL
Break out of While Loop in C - CodeGK

♦ Break out of While Loop in C

♣ Example2: Break out of While Loop in C

In this example, control is switched out of a While Loop after 2 seconds.
Example
Input:
Output: