Wednesday, February 10, 2010

simple c program in while loop

#include
#include

int main()
{
int index;

   index = 0;
   while (index < 10)
   {
      printf("S.GUNA\n");
      index = index + 1;
   }
  getch();
   return 0;
}



/* Result of execution

S.GUNA
S.GUNA
S.GUNA
S.GUNA
S.GUNA
S.GUNA
S.GUNA
S.GUNA
S.GUNA
S.GUNA

No comments:

Post a Comment