google407ec42f1ae5ff0e.html
top of page

while loop in c programming

Program to print numbers from 1 to 10 using while loop

#include<stdio.h>

int main(void)

{

int i=1;

while(i<=10)

{

printf("%d\t",i);

i = i+1;

}

printf("\n");

return 0;

}


3 views0 comments

Recent Posts

See All
bottom of page