Wednesday, February 10, 2010

simple c program in do while

#include
#include

int main()
{
int index;

   index = 0;
   do
   {
      printf("c is simple\n");
      index = index + 1;
   } while (index < 10);

getch();  
return 0;
}



/* Result of execution

c is simple
c is simple
c is simple
c is simple
c is simple
c is simple
c is simple
c is simple
c is simple
c is simple


*/

No comments:

Post a Comment