C Program To Print Number 1 To 10 Using While Loop

PROGRAM :

#include<stdio.h>
int main()
{
    int i=1;
    while(i<11)
    {
        printf("%d\n",i);
        i++;
    }
}



OUTPUT :

1
2
3
4
5
6
7
8
9
10

Post a Comment

0 Comments