Thursday, January 23, 2014

C Program to print from 1 to 10 using while loop

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

No comments:

Post a Comment