while loop

 #include <stdio.h>

int main()
{
    int i=0;
    while(i<10)
    {
        printf("%d\n",i);
        i++;
    }
    return 0;
}

Comments

Popular posts from this blog

Tokens in C

Steps taken by a compiler to execute a C program

Variables and Data Types in C