int i=0; while(1){ // Process you want to loop i++; if(i>10){ break; } }
while (testExpression) { // statements inside the body of the loop }