Monday, 9 May 2016

Loop in C Language

#include <stdio.h>
 
main()
{
   int a = 1;
 
   while(a <=3)
   {
      printf("a is %d\n", a);
      a++;
   }
 
   return 0;
}
 
Output:
a is 1
a is 2
a is 3  
 

No comments:

Post a Comment