C program to print numbers 1 to 10 using while loop


/* C program to print numbers 1 to 10 using while loop */

#include"stdio.h"

void main()
{

int i=1;
while(i<=10)
{
printf("%d ", i);
i++;
}

}

Output:



Comments

Popular Posts