To build an infinite loop with while:
i.e.
while(1
{
[loop_body]
}
break in C takes you out of the loop, whereas continue takes you out of the current iteration.
When you face multiple conditions, you can place these with multiple else-if conditions between your opening if and closing else statements.
#c #break #continue #loops #programming #learn