c while
snippet in c

c while

user603

int i=0;
while(1){
  // Process you want to loop
  i++;
  if(i>10){
    break;
  }
}
  

WHILE loop in c

user3251

while( a < 20 ) {
      printf("value of a: %d\n", a);
      a++;
   }

whiel loop in C

user6097

while (testExpression) 
{
    // statements inside the body of the loop 
}