“Printing Numbers from 1 to 10 using a While Loop”

Solution – #include
int main()
{ int x=1;
while(10>=x){
printf(“%dn”,x);
x=x+1;}
return 0;
}

Comments

Leave a Reply