while

    #include <stdio.h> /* including standard library */
//#include <windows.h> /* uncomment this for Windows */
 
    while ( condition == true ) {
    do something until condition untrue
    }

C Sourcecode Example

#include <stdio.h> /* including standard library */
//#include <windows.h> /* uncomment this for Windows */
 
 
int main(void) {
    int i=0;
 
    while (i <= 10) {
        printf("%i\n",i);
        i++;
    }
    return 0;
}
  //output://
  
  0
  1
  2
  3
  4
  5
  6
  7
  ...
  up to 10