www.pudn.com > c.rar > whilest.c


/* Demonstrates a simple while statement */ 
 
#include  
 
int count; 
 
int main( void ) 
{ 
    /* Print the numbers 1 through 20 */ 
 
   count = 1; 
 
    while (count <= 20) 
    { 
        printf("%d\n", count); 
        count++; 
    } 
    return 0; 
}