C Programming Reference >> C Basic Tutorials >> C Keywords Home >> whileui 30/12/06 - Views - Ratings : This keyword is used to generate loops. This is an entry control loop that is value is checked starting of loop. Loop doesnot execute even once if conditons fails. Code - void function (void)
{
int i = 0;
while (i>10)
{
printf ("\n%d", i); \\ Loop prints values 0 to 9.
i++;
}
}
|